diff options
author | konablend <[email protected]> | 2009-05-03 14:34:16 +0000 |
---|---|---|
committer | konablend <[email protected]> | 2009-05-03 14:34:16 +0000 |
commit | 79be76e91e82c68f036fbc3f06283fa25a7d5e87 (patch) | |
tree | c3b1c8da377c2bc5ff9de81c7ed3a466d05d4eed /libhb/encx264.c | |
parent | 5ba946fe336baba0d53ae1ca61691d43982761c6 (diff) |
- encx264 sets HB_FRAME_REF to expose ref/non-ref frame status to muxer.
- bump libmp4v2 r286 -> r290; required for new API (sdtp atom support).
- use new API MP4WriteSampleDependency() in muxer to signal disposable frames and set a few other dependency bits for sdtp atom.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2371 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r-- | libhb/encx264.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index 360dc8448..374c92184 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -508,6 +508,12 @@ static hb_buffer_t *nal_encode( hb_work_object_t *w, x264_picture_t *pic_out, (nal[i].i_ref_idc != NAL_PRIORITY_DISPOSABLE) ) buf->frametype = HB_FRAME_BREF; + /* Expose disposable bit to muxer. */ + if( nal[i].i_ref_idc == NAL_PRIORITY_DISPOSABLE ) + buf->flags &= ~HB_FRAME_REF; + else + buf->flags |= HB_FRAME_REF; + buf->size += size; } // make sure we found at least one video frame |