fix frametypes with xvid_rc
Originally committed as revision 5180 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0adba3d88b
commit
5fe4cf7b9f
@ -117,6 +117,9 @@ int ff_rate_control_init(MpegEncContext *s)
|
|||||||
|
|
||||||
p= next;
|
p= next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(init_pass2(s) < 0) return -1;
|
||||||
|
|
||||||
//FIXME maybe move to end
|
//FIXME maybe move to end
|
||||||
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
|
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
|
||||||
#ifdef CONFIG_XVID
|
#ifdef CONFIG_XVID
|
||||||
@ -126,8 +129,6 @@ int ff_rate_control_init(MpegEncContext *s)
|
|||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if(init_pass2(s) < 0) return -1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!(s->flags&CODEC_FLAG_PASS2)){
|
if(!(s->flags&CODEC_FLAG_PASS2)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user