diff mpegvideo.c @ 2981:33d4fb0df0d3 libavcodec

better f_code guessing in 2nd pass
author michael
date Thu, 22 Dec 2005 22:48:09 +0000
parents 529163f99474
children 538eed481f62
line wrap: on
line diff
--- a/mpegvideo.c	Thu Dec 22 14:17:54 2005 +0000
+++ b/mpegvideo.c	Thu Dec 22 22:48:09 2005 +0000
@@ -5298,9 +5298,10 @@
             s->no_rounding ^= 1;
     }
 
-    if(s->flags & CODEC_FLAG_PASS2)
+    if(s->flags & CODEC_FLAG_PASS2){
         estimate_qp(s, 1);
-    else if(!(s->flags & CODEC_FLAG_QSCALE)){
+        ff_get_2pass_fcode(s);
+    }else if(!(s->flags & CODEC_FLAG_QSCALE)){
         RateControlContext *rcc= &s->rc_context;
 
         if(s->pict_type==B_TYPE)