diff ratecontrol.c @ 3203:a78cc2e4b90e libavcodec

fix frametypes with xvid_rc
author michael
date Sat, 18 Mar 2006 20:43:48 +0000
parents 646f6344472d
children 19e9a62ddf1b
line wrap: on
line diff
--- 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)){