diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2003-11-13 23:22:06 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2003-11-13 23:22:06 +0000 |
commit | dd3e415e06cbd5b6c9e816708f067ede1cfbf943 (patch) | |
tree | 7b68eb2d28e749fa0e4ba49ad211a3b54c933ffe /libavcodec/mpegvideo.c | |
parent | 4b813d5c5a1a98ee4149a05efd7c416fbfe8dd75 (diff) | |
download | ffmpeg-dd3e415e06cbd5b6c9e816708f067ede1cfbf943.tar.gz |
qprd needs mbd=2
Originally committed as revision 2517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 87dd5fb984..e11b411876 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -700,6 +700,11 @@ int MPV_encode_init(AVCodecContext *avctx) return -1; } + if((s->flags & CODEC_FLAG_QP_RD) && s->avctx->mb_decision != FF_MB_DECISION_RD){ + av_log(avctx, AV_LOG_ERROR, "QP RD needs mbd=2\n"); + return -1; + } + if(s->codec_id==CODEC_ID_MJPEG){ s->intra_quant_bias= 1<<(QUANT_BIAS_SHIFT-1); //(a + x/2)/x s->inter_quant_bias= 0; |