If the CTTS atom is missing/empty then do not try to access the frame offset table.

This commit is contained in:
Moritz Bunkus 2006-11-12 16:13:20 +00:00
parent f84a88952e
commit 315f9c8cc8
2 changed files with 5 additions and 1 deletions

View File

@ -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.

View File

@ -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) {