Mercurial > mplayer.hg
changeset 34820:21e672205f9f
Do not keep b_count/ip_count stuck at large numbers.
Fixes nonref_dr mode getting stuck at disabled.
author | reimar |
---|---|
date | Wed, 16 May 2012 14:27:55 +0000 |
parents | eba74596e6ee |
children | 747608fd4dcc |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Wed May 16 14:27:54 2012 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Wed May 16 14:27:55 2012 +0000 @@ -694,12 +694,10 @@ //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)