# HG changeset patch # User michael # Date 1142714628 0 # Node ID a78cc2e4b90e76a80827e22d6b634b4750a5a6a0 # Parent 89348aaf566e08bc3b39eebff7f49cf61fd1addc fix frametypes with xvid_rc diff -r 89348aaf566e -r a78cc2e4b90e ratecontrol.c --- a/ratecontrol.c Sat Mar 18 02:46:39 2006 +0000 +++ b/ratecontrol.c Sat Mar 18 20:43:48 2006 +0000 @@ -117,6 +117,9 @@ 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 @@ return -1; #endif } - - if(init_pass2(s) < 0) return -1; } if(!(s->flags&CODEC_FLAG_PASS2)){