Bug 1283439 - Include OpusDecoder.h only for Rust MP4 parsing r=kinetik
authorAlexandre Lissy <lissyx@lissyx.dyndns.org>
Thu, 30 Jun 2016 19:13:53 +0200
changeset 303506 f4c2575a96e848b1d842ca767d222bba170ba9db
parent 303505 0eaec57731b72e883cc845018943d58e6ec9b65b
child 303507 0f7988afce2c022ccc86ca2466fd0bd76e18e9f6
push id30391
push usergszorc@mozilla.com
push dateMon, 04 Jul 2016 16:02:02 +0000
treeherdermozilla-central@f378a56b25ce [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerskinetik
bugs1283439
milestone50.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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