From f89cb4e117fa98fe3d6b8820b3d7f4a80a6acc4a Mon Sep 17 00:00:00 2001 From: Rodeo Date: Tue, 22 Jan 2013 20:21:32 +0000 Subject: Fix hb_apply_h264_level() after x264 bump. x264's DPB size table was updated in http://git.videolan.org/?p=x264.git;a=commit;h=d2d8364f git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5193 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encx264.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libhb') diff --git a/libhb/encx264.c b/libhb/encx264.c index f5808963f..503f46cd9 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -805,7 +805,7 @@ int hb_apply_h264_level(x264_param_t *param, const char *h264_level, if (param->i_keyint_max != 1) { int i_max_dec_frame_buffering = - MAX(MIN(x264_level->dpb / (384 * i_mb_size), 16), 1); + MAX(MIN(x264_level->dpb / i_mb_size, 16), 1); param->i_frame_reference = MIN(i_max_dec_frame_buffering, param->i_frame_reference); /* -- cgit v1.2.3