[MPlayer-cvslog] r34908 - trunk/libmpcodecs/vd_ffmpeg.c

reimar subversion at mplayerhq.hu
Wed May 16 16:27:55 CEST 2012


Author: reimar
Date: Wed May 16 16:27:55 2012
New Revision: 34908

Log:
Do not keep b_count/ip_count stuck at large numbers.

Fixes nonref_dr mode getting stuck at disabled.

Modified:
   trunk/libmpcodecs/vd_ffmpeg.c

Modified: trunk/libmpcodecs/vd_ffmpeg.c
==============================================================================
--- trunk/libmpcodecs/vd_ffmpeg.c	Wed May 16 16:27:54 2012	(r34907)
+++ trunk/libmpcodecs/vd_ffmpeg.c	Wed May 16 16:27:55 2012	(r34908)
@@ -694,12 +694,10 @@ static void release_buffer(struct AVCode
 
 //printf("release buffer %d %d %d\n", mpi ? mpi->flags&MP_IMGFLAG_PRESERVE : -99, ctx->ip_count, ctx->b_count);
 
-    if(ctx->ip_count <= 2 && ctx->b_count<=1){
         if(mpi->flags&MP_IMGFLAG_PRESERVE)
             ctx->ip_count--;
         else
             ctx->b_count--;
-    }
 
     if (mpi) {
         // release mpi (in case MPI_IMGTYPE_NUMBERED is used, e.g. for VDPAU)


More information about the MPlayer-cvslog mailing list