50l: Reenable error resilience for H264 (Patch by Dark Shikari).
authorJason Garrett-Glaser <darkshikari@gmail.com>
Mon, 5 Jan 2009 08:46:59 +0000 (08:46 +0000)
committerCarl Eugen Hoyos <cehoyos@rainbow.studorg.tuwien.ac.at>
Mon, 5 Jan 2009 08:46:59 +0000 (08:46 +0000)
Originally committed as revision 16434 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/h264.c

index 5dad4ce..eeb5290 100644 (file)
@@ -7646,7 +7646,7 @@ static int decode_frame(AVCodecContext *avctx,
          * past end by one (callers fault) and resync_mb_y != 0
          * causes problems for the first MB line, too.
          */
-        if (!avctx->codec_id == CODEC_ID_H264_VDPAU && !FIELD_PICTURE)
+        if (avctx->codec_id != CODEC_ID_H264_VDPAU && !FIELD_PICTURE)
             ff_er_frame_end(s);
 
         MPV_frame_end(s);