summaryrefslogtreecommitdiffstats
path: root/libhb/encx264.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-11-09 13:43:53 -0800
committerGitHub <[email protected]>2017-11-09 13:43:53 -0800
commit65597ee7f4bfa11838d815fceb6bc6dd24150c1f (patch)
treed044e1fb014797b4526508d4d423194079d746a5 /libhb/encx264.c
parent86d6345771e3b2fb22255620aa91cf77fdf15f10 (diff)
Add adaptive streaming support (#972)
"Adaptive streaming" allows changing video parameters mid-stream at IDR boundaries. Such changes require new SPS and PPS NALs at the IDR. MP4 supports this with 'avc3' and 'hev1' sample entry types.
Diffstat (limited to 'libhb/encx264.c')
-rw-r--r--libhb/encx264.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libhb/encx264.c b/libhb/encx264.c
index 1d2fd997e..ce7879ec7 100644
--- a/libhb/encx264.c
+++ b/libhb/encx264.c
@@ -718,10 +718,14 @@ static hb_buffer_t *nal_encode( hb_work_object_t *w, x264_picture_t *pic_out,
*/
case NAL_SPS:
case NAL_PPS:
- continue;
+ if (!job->inline_parameter_sets)
+ {
+ continue;
+ }
+ break;
- case NAL_SLICE:
case NAL_SLICE_IDR:
+ case NAL_SLICE:
case NAL_SEI:
default:
break;