From 109997ac77bbd4028e9019c16f5e00217410f126 Mon Sep 17 00:00:00 2001 From: jbrjake Date: Tue, 12 Feb 2008 15:37:26 +0000 Subject: When x264 outputs frames as references for b-frame pyramids, flag them as such instead of just marking them as regular b-frames. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1257 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/encx264.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libhb/encx264.c b/libhb/encx264.c index 8b6c22d07..f9cbd7100 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -518,7 +518,11 @@ int encx264Work( hb_work_object_t * w, hb_buffer_t ** buf_in, buf->frametype = 0; } - + /* Since libx264 doesn't tell us when b-frames are + themselves reference frames, figure it out on our own. */ + if( (buf->frametype == HB_FRAME_B) && (nal[i].i_ref_idc != NAL_PRIORITY_DISPOSABLE) ) + buf->frametype = HB_FRAME_BREF; + /* Store the output presentation time stamp from x264 for use by muxmp4 in off-setting b-frames with the CTTS atom. */ -- cgit v1.2.3