diff mpegvideo.c @ 3335:97af1b315f59 libavcodec

Make B-frame reduction sensitivity by b_strategy/vb_strategy = 1 user-tunable.
author corey
date Sat, 03 Jun 2006 06:26:04 +0000
parents 8869b4dd2ffe
children de0ed6497a13
line wrap: on
line diff
--- a/mpegvideo.c	Sat Jun 03 04:38:11 2006 +0000
+++ b/mpegvideo.c	Sat Jun 03 06:26:04 2006 +0000
@@ -2375,7 +2375,7 @@
                     }
                 }
                 for(i=0; i<s->max_b_frames+1; i++){
-                    if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/40) break;
+                    if(s->input_picture[i]==NULL || s->input_picture[i]->b_frame_score - 1 > s->mb_num/s->avctx->b_sensitivity) break;
                 }
 
                 b_frames= FFMAX(0, i-1);