Commit 9d9702ab authored by michael's avatar michael

fix frametypes with xvid_rc


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5180 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 030a86c6
......@@ -117,6 +117,9 @@ int ff_rate_control_init(MpegEncContext *s)
p= next;
}
if(init_pass2(s) < 0) return -1;
//FIXME maybe move to end
if((s->flags&CODEC_FLAG_PASS2) && s->avctx->rc_strategy == FF_RC_STRATEGY_XVID) {
#ifdef CONFIG_XVID
......@@ -126,8 +129,6 @@ int ff_rate_control_init(MpegEncContext *s)
return -1;
#endif
}
if(init_pass2(s) < 0) return -1;
}
if(!(s->flags&CODEC_FLAG_PASS2)){
......
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