mkvtoolnix/tests/test-565hevc_detection_failed_due_to_width_height.rb
Moritz Bunkus 190cd56e7b AVC, HEVC readers: fix requiring detected width/height to be positive
Under certain conditions the width/height of hadn't been known in the
HEVC when the HEVCC was considered to be ready. The width/height were
only fixed by later SPS instances in the bitstream.

In that case the HEVC reader was only reading until the the parser
signaled that the HEVCC was ready. The following check for width &
height being positive failed, causing detection to fail.

The change is to let the HEVC parser signal readiness if and only if
both the HEVCC is ready and width & height are positive.

The same applies to the AVC reader.

This fixes the regression introduced in
508c925eef.
2016-09-11 14:07:16 +02:00

10 lines
281 B
Ruby
Executable File

#!/usr/bin/ruby -w
# T_565hevc_detection_failed_due_to_width_height
describe "mkvmerge / HEVC detection failed due to width/height not being said at the wrong point in time"
file = "data/h265/x265_v2.0+24_crf12_aqmode0_threads1_hightier.h265"
test_identify file
test_merge file