From 07054015cfe7df93abda8ac5ba1f5b5d0c44e499 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 7 Mar 2013 16:38:21 +0100 Subject: [PATCH 1/2] mpegvideo: remove FMT_H264 --- libavcodec/mpegvideo.h | 1 - libavcodec/mpegvideo_enc.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h index e4a1356f11..ea08c14fed 100644 --- a/libavcodec/mpegvideo.h +++ b/libavcodec/mpegvideo.h @@ -49,7 +49,6 @@ enum OutputFormat { FMT_H261, FMT_H263, FMT_MJPEG, - FMT_H264, }; #define MPEG_BUF_SIZE (16 * 1024) diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c index f671460906..c4ce43fb17 100644 --- a/libavcodec/mpegvideo_enc.c +++ b/libavcodec/mpegvideo_enc.c @@ -3228,8 +3228,6 @@ static int encode_picture(MpegEncContext *s, int picture_number) if (CONFIG_MPEG1VIDEO_ENCODER || CONFIG_MPEG2VIDEO_ENCODER) ff_mpeg1_encode_picture_header(s, picture_number); break; - case FMT_H264: - break; default: assert(0); } From f08fefc4d099f2a1f2e3a6db3d340537e601f762 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Thu, 7 Mar 2013 16:40:26 +0100 Subject: [PATCH 2/2] h264: remove a useless svq3 condition The svq3 decoder does not call ff_h264_frame_start() anymore. --- libavcodec/h264.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libavcodec/h264.c b/libavcodec/h264.c index cad2520da4..de5ca403ae 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -1802,11 +1802,8 @@ int ff_h264_frame_start(H264Context *h) /* We mark the current picture as non-reference after allocating it, so * that if we break out due to an error it can be released automatically * in the next ff_MPV_frame_start(). - * SVQ3 as well as most other codecs have only last/next/current and thus - * get released even with set reference, besides SVQ3 and others do not - * mark frames as reference later "naturally". */ - if (h->avctx->codec_id != AV_CODEC_ID_SVQ3) - h->cur_pic_ptr->reference = 0; + */ + h->cur_pic_ptr->reference = 0; h->cur_pic_ptr->field_poc[0] = h->cur_pic_ptr->field_poc[1] = INT_MAX;