Index: vd_ffmpeg.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v retrieving revision 1.88 diff -u -r1.88 vd_ffmpeg.c --- vd_ffmpeg.c 25 Apr 2003 00:57:04 -0000 1.88 +++ vd_ffmpeg.c 25 Apr 2003 21:00:49 -0000 @@ -484,7 +484,7 @@ //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 && (ctx->ip_count <= 2 && ctx->b_count<=1)){ if(mpi->flags&MP_IMGFLAG_PRESERVE) ctx->ip_count--; else