Commit d385b1c7 authored by michael's avatar michael

qprd needs mbd=2


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2517 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bb6beb48
......@@ -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;
......
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