From c0b62146938dd97a8b092fa6ebd8bf689e64d3b6 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Sun, 6 Jan 2013 22:58:42 +0100 Subject: [PATCH] mkvmerge: FLV reader: fix determining available track IDs --- src/input/r_flv.cpp | 5 +++++ src/input/r_flv.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/input/r_flv.cpp b/src/input/r_flv.cpp index e9d2812bc..18181a19c 100755 --- a/src/input/r_flv.cpp +++ b/src/input/r_flv.cpp @@ -296,6 +296,11 @@ flv_reader_c::identify() { } } +void +flv_reader_c::add_available_track_ids() { + add_available_track_id_range(m_tracks.size()); +} + void flv_reader_c::create_packetizer(int64_t id) { if ((0 > id) || (m_tracks.size() <= static_cast(id)) || m_tracks[id]->is_ptzr_set()) diff --git a/src/input/r_flv.h b/src/input/r_flv.h index 9b14bea7e..db6a62220 100755 --- a/src/input/r_flv.h +++ b/src/input/r_flv.h @@ -146,6 +146,7 @@ public: virtual void identify(); virtual void create_packetizer(int64_t tid); virtual void create_packetizers(); + virtual void add_available_track_ids(); static int probe_file(mm_io_c *io, uint64_t size);