mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-01 15:56:59 +00:00
If the CTTS atom is missing/empty then do not try to access the frame offset table.
This commit is contained in:
parent
f84a88952e
commit
315f9c8cc8
@ -1,5 +1,9 @@
|
||||
2006-11-12 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: Quicktime/MP4 files with AVC video tracks and
|
||||
missing CTTS atoms caused mkvmerge to crash after the recent
|
||||
changes to the Quicktime/MP4 timecode handling.
|
||||
|
||||
* mkvmerge: bug fix: Fixed a segfault if the file specified with
|
||||
"--attach-file" does not exist. Bugfix for Anthill bug 213 and
|
||||
Debian bug 393984.
|
||||
|
@ -1810,7 +1810,7 @@ qtmp4_demuxer_t::calculate_timecodes() {
|
||||
int64_t v_dts_offset = 0;
|
||||
vector<int64_t> timecodes_before_offsets;
|
||||
|
||||
if (('v' == type) && v_is_avc)
|
||||
if (('v' == type) && v_is_avc && !frame_offset_table.empty())
|
||||
v_dts_offset = to_nsecs(frame_offset_table[0]);
|
||||
|
||||
for (frame = 0; sample_table.size() > frame; ++frame) {
|
||||
|
Loading…
Reference in New Issue
Block a user