From b992010b326f73f1f7e3afbf8a98d65a9fba8dc4 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Jan 2005 13:51:56 +0000 Subject: [PATCH] Fix for gap_following in v3 timecode files. Fix for the width & height for VobButton tracks. Patch by Steve Lhomme (steve ! lhomme () free ! fr) --- src/merge/pr_generic.cpp | 10 ++++++++++ src/merge/timecode_factory.cpp | 8 ++++---- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/src/merge/pr_generic.cpp b/src/merge/pr_generic.cpp index fe7183e4b..3bc855a62 100644 --- a/src/merge/pr_generic.cpp +++ b/src/merge/pr_generic.cpp @@ -737,6 +737,16 @@ generic_packetizer_c::set_headers() { *(static_cast(&GetChild(audio))) = haudio_bit_depth; + } else if (htrack_type == track_buttons) { + if ((hvideo_pixel_height != -1) && (hvideo_pixel_width != -1)) { + KaxTrackVideo &video = GetChild(*track_entry); + + *(static_cast + (&GetChild(video))) = hvideo_pixel_width; + *(static_cast + (&GetChild(video))) = hvideo_pixel_height; + } + } if (ti->compression != COMPRESSION_UNSPECIFIED) diff --git a/src/merge/timecode_factory.cpp b/src/merge/timecode_factory.cpp index f8ea3aba6..2c61a1905 100644 --- a/src/merge/timecode_factory.cpp +++ b/src/merge/timecode_factory.cpp @@ -186,7 +186,7 @@ timecode_factory_v1_c::get_next(int64_t &timecode, mxverb(4, "ext_timecodes v1: tc %lld dur %lld for %lld\n", timecode, duration, frameno - 1); - return true; + return false; } int64_t @@ -260,14 +260,14 @@ timecode_factory_v2_c::get_next(int64_t &timecode, "the way you intended them to be. mkvmerge might even crash.\n", source_name.c_str(), tid, timecodes.size()); warning_printed = true; - return true; + return false; } timecode = timecodes[frameno]; duration = durations[frameno]; if (!peek_only) frameno++; - return true; + return false; } void @@ -366,7 +366,7 @@ bool timecode_factory_v3_c::get_next(int64_t &timecode, int64_t &duration, bool peek_only) { - bool result = (current_timecode == 0); + bool result = false; if (durations[current_duration].is_gap) { size_t duration_index = current_duration;