# HG changeset patch # User reimar # Date 1339523389 0 # Node ID 1b28f529eac5e4109474dd233b1caa3b2ad097bb # Parent e7bfc26b6e42a14b9532149783b2ca4e8829c156 Fix skip_frame condition, AVDISCARD_DEFAULT is not the same as AVDISCARD_NONE although it behaves the same. diff -r e7bfc26b6e42 -r 1b28f529eac5 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Tue Jun 12 07:09:44 2012 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Jun 12 17:49:49 2012 +0000 @@ -884,7 +884,7 @@ if(!got_picture) { if (avctx->codec->id == CODEC_ID_H264 && - skip_frame == AVDISCARD_NONE) + skip_frame > AVDISCARD_DEFAULT) return &mpi_no_picture; // H.264 first field only else return NULL; // skipped image