From 8d6b0f161496bbd4b1030398f5bc4ef5af7661be Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Wed, 12 Nov 2003 16:43:26 +0000 Subject: [PATCH] Fix for newer libebml API changes. --- src/mkvextract_tracks.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mkvextract_tracks.cpp b/src/mkvextract_tracks.cpp index ce2021380..5e9c84b47 100644 --- a/src/mkvextract_tracks.cpp +++ b/src/mkvextract_tracks.cpp @@ -49,9 +49,10 @@ extern "C" { #include #include #include +#include #include -#include +#include #include #include #include @@ -1054,7 +1055,11 @@ bool extract_tracks(const char *file_name) { } else if (EbmlId(*l3) == KaxCodecPrivate::ClassInfos.GlobalId) { char pbuffer[100]; KaxCodecPrivate &c_priv = *static_cast(l3); +#if LIBEBML_VERSION >= 000603 + c_priv.ReadData(es->I_O(), SCOPE_ALL_DATA); +#else c_priv.ReadData(es->I_O()); +#endif if (ms_compat && (kax_track_type == 'v') && (c_priv.GetSize() >= sizeof(alBITMAPINFOHEADER))) { alBITMAPINFOHEADER *bih =