Bug 1283439 - Include OpusDecoder.h only for Rust MP4 parsing r?kinetik draft
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Thu, 30 Jun 2016 19:13:53 +0200
changeset 383105 cf432462c2ea3379a5c46a0bf4d5140aaa0e38bc
parent 382798 82e1f1b9c0559f38a8460e2f2f3044de4c7712d6
child 524394 9c38919384e15d41bfe8f7b0f21b8d30c2820ef3
push id21935
push userbmo:lissyx+mozillians@lissyx.dyndns.org
push dateFri, 01 Jul 2016 07:57:42 +0000
reviewerskinetik
bugs1283439
milestone50.0a1
Bug 1283439 - Include OpusDecoder.h only for Rust MP4 parsing r?kinetik MozReview-Commit-ID: 9zzhvYowlkX
media/libstagefright/binding/MP4Metadata.cpp
--- a/media/libstagefright/binding/MP4Metadata.cpp
+++ b/media/libstagefright/binding/MP4Metadata.cpp
@@ -9,27 +9,28 @@
 #include "media/stagefright/MetaData.h"
 #include "mozilla/Assertions.h"
 #include "mozilla/CheckedInt.h"
 #include "mozilla/EndianUtils.h"
 #include "mozilla/Logging.h"
 #include "mozilla/RefPtr.h"
 #include "mozilla/Telemetry.h"
 #include "mozilla/UniquePtr.h"
-#include "OpusDecoder.h"
 #include "VideoUtils.h"
 #include "mp4_demuxer/MoofParser.h"
 #include "mp4_demuxer/MP4Metadata.h"
 #include "mp4_demuxer/Stream.h"
 
 #include <limits>
 #include <stdint.h>
 #include <vector>
 
 #ifdef MOZ_RUST_MP4PARSE
+// OpusDecoder header is really needed only by MP4 in rust
+#include "OpusDecoder.h"
 #include "mp4parse.h"
 
 struct FreeMP4Parser { void operator()(mp4parse_parser* aPtr) { mp4parse_free(aPtr); } };
 #endif
 
 using namespace stagefright;
 
 namespace mp4_demuxer