Mercurial > libavcodec.hg
changeset 1622:f4794fafc4ce libavcodec
qprd needs mbd=2
author | michael |
---|---|
date | Thu, 13 Nov 2003 23:22:06 +0000 |
parents | 39415c362982 |
children | 1dd437affd27 |
files | mpegvideo.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Thu Nov 13 22:20:12 2003 +0000 +++ b/mpegvideo.c Thu Nov 13 23:22:06 2003 +0000 @@ -700,6 +700,11 @@ 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;