summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorCorey Hickey <bugfood-ml@fatooh.org>2006-06-03 06:26:04 +0000
committerCorey Hickey <bugfood-ml@fatooh.org>2006-06-03 06:26:04 +0000
commitf9243d34f19da816e05ad9e314e52b609e928bb1 (patch)
tree2dfd9ef977aad109bb8a8b516d1bbe318490230b /libavcodec/mpegvideo.c
parent7e5370516b96b92f2c37b943695b8933e92f40c7 (diff)
Make B-frame reduction sensitivity by b_strategy/vb_strategy = 1
user-tunable. Originally committed as revision 5450 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index dac57c6cd0..6393cc91fe 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -2375,7 +2375,7 @@ static void select_input_picture(MpegEncContext *s){
}
}
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);