mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-20 08:15:06 +02:00
qprd needs mbd=2
Originally committed as revision 2517 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4b813d5c5a
commit
dd3e415e06
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user