[FFmpeg-cvslog] mpegvideo_enc: allow mpeg_quant to be set in mpeg2video

Michael Niedermayer git at videolan.org
Thu May 30 16:12:31 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu May 30 16:07:07 2013 +0200| [6f7de3d5c8a5bafb3bb8a311c1251ac7cc43de67] | committer: Michael Niedermayer

mpegvideo_enc: allow mpeg_quant to be set in mpeg2video

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6f7de3d5c8a5bafb3bb8a311c1251ac7cc43de67
---

 libavcodec/mpegvideo_enc.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/mpegvideo_enc.c b/libavcodec/mpegvideo_enc.c
index 6a0f3b5..de018e3 100644
--- a/libavcodec/mpegvideo_enc.c
+++ b/libavcodec/mpegvideo_enc.c
@@ -535,7 +535,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
     }
 
     // FIXME mpeg2 uses that too
-    if (s->mpeg_quant && s->codec_id != AV_CODEC_ID_MPEG4) {
+    if (s->mpeg_quant && (   s->codec_id != AV_CODEC_ID_MPEG4
+                          && s->codec_id != AV_CODEC_ID_MPEG2VIDEO)) {
         av_log(avctx, AV_LOG_ERROR,
                "mpeg2 style quantization not supported by codec\n");
         return -1;



More information about the ffmpeg-cvslog mailing list