mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-26 04:42:04 +00:00
ee46e1c7ab
After reading the headers, the file is read again from the start. Therefore no data must be left in the parser's internal buffers. That was the intention behind calling `flush()` - but that isn't actually what flush does. Instead it tries to use the remaining data in the buffers as a frame. This is not only wrong, it can also fail and cause an exception to be thrown. That in turn causes a failure when reading the headers — both identification and muxing abort at that point. Fixes #2325.
6 lines
236 B
Ruby
Executable File
6 lines
236 B
Ruby
Executable File
#!/usr/bin/ruby -w
|
|
|
|
# T_642avc_es_clear_internal_buffers_after_reading_headers
|
|
describe "mkvmerge / AVC/h.264 identification failure due to remaining data in parser's buffers"
|
|
test_merge "data/h264/failure-due-to-internal-buffers.h264"
|