diff options
author | John Stebbins <[email protected]> | 2017-11-28 08:22:54 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2017-11-28 08:22:54 -0800 |
commit | 9e1f245708a157231c427c0ef9b91729d59a30e1 (patch) | |
tree | 473d6b6b603a0a9265d3b8d27c2dc113cbbd2f3f /libhb/encx264.c | |
parent | 4df3c6b2a6a75d6e2333b1fb012731e2718d490c (diff) |
add sdtp (sample dependency) box to mp4 (#1006)
* add sdtp (sample dependency) box to mp4
The AppleTV 4K requires this box in order to play 2160p60 video.
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r-- | libhb/encx264.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c index ce7879ec7..26645213a 100644 --- a/libhb/encx264.c +++ b/libhb/encx264.c @@ -701,6 +701,7 @@ static hb_buffer_t *nal_encode( hb_work_object_t *w, x264_picture_t *pic_out, frames we only get the duration of the first which will eventually screw up the muxer & decoder. */ int i; + buf->s.flags &= ~HB_FLAG_FRAMETYPE_REF; for( i = 0; i < i_nal; i++ ) { int size = nal[i].i_payload; @@ -737,11 +738,7 @@ static hb_buffer_t *nal_encode( hb_work_object_t *w, x264_picture_t *pic_out, * Also, since libx264 doesn't tell us when B-frames are * themselves reference frames, figure it out on our own. */ - if (nal[i].i_ref_idc == NAL_PRIORITY_DISPOSABLE) - { - buf->s.flags &= ~HB_FLAG_FRAMETYPE_REF; - } - else + if (nal[i].i_ref_idc != NAL_PRIORITY_DISPOSABLE) { if (buf->s.frametype == HB_FRAME_B) { |