diff --git a/libavcodec/h264.c b/libavcodec/h264.c index 5dad4ce211e5f1d8043ab2c3b07926f590532be5..eeb5290fed03da616a885c9041ea0b7dc2fc3684 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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);