Commit 6f7de3d5 authored by Michael Niedermayer's avatar Michael Niedermayer

mpegvideo_enc: allow mpeg_quant to be set in mpeg2video

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 62d00aa2
...@@ -535,7 +535,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx) ...@@ -535,7 +535,8 @@ av_cold int ff_MPV_encode_init(AVCodecContext *avctx)
} }
// FIXME mpeg2 uses that too // 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, av_log(avctx, AV_LOG_ERROR,
"mpeg2 style quantization not supported by codec\n"); "mpeg2 style quantization not supported by codec\n");
return -1; return -1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment