mkvtoolnix/tests/test-687h264_additional_sps_pps_in_middle.rb
Moritz Bunkus c85b3b177f
h.264 parser: prepend new SPS/PPS NALUs found mid-stream to key frames, too
This was already done when SPS or PPS NALUs were found with the same
ID as active SPS or PPS but with different content. The missing case
were SPS or PPS NALUs whose IDs hadn't been seen before.

After such an encounter all following key frames must be prepended
with the active SPS & PPS, too. Otherwise seeking would not work as
the player only used the SPS & PPS from CodecPrivate but didn't know
about the new ones from mid-stream.

Part of the fix of #2250.
2020-01-05 16:37:06 +01:00

6 lines
243 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_687h264_additional_sps_pps_in_middle
describe "mkvmerge / h.264 additional SPS & PPS with so-far unused IDs in the middle"
test_merge "data/h264/additional_sps_pps_in_middle.h264", :args => "--default-duration 0:25fps"