]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libxvid_rc.c
Optimize top non_zero_count_cache init.
[ffmpeg] / libavcodec / libxvid_rc.c
index f06f5b96053732bab07d0ef2fb1a7e51d42f62e8..c161ba71010b8e5b1c02e38dbbc0869afa63d464 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * xvid Rate control wrapper for lavc video encoders
+ * Xvid rate control wrapper for lavc video encoders
  *
  * Copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at>
  *
@@ -134,7 +134,7 @@ float ff_xvid_rate_estimate_qscale(MpegEncContext *s, int dry_run){
     if(!dry_run)
         s->rc_context.dry_run_qscale= 0;
 
-    if(s->pict_type == B_TYPE) //FIXME this is not exactly identical to xvid
+    if(s->pict_type == FF_B_TYPE) //FIXME this is not exactly identical to xvid
         return xvid_plg_data.quant * FF_QP2LAMBDA * s->avctx->b_quant_factor + s->avctx->b_quant_offset;
     else
         return xvid_plg_data.quant * FF_QP2LAMBDA;