diff --git a/packager/media/base/container_names.cc b/packager/media/base/container_names.cc index d49ed30a5d..8fd38c5d5c 100644 --- a/packager/media/base/container_names.cc +++ b/packager/media/base/container_names.cc @@ -14,7 +14,6 @@ #include "packager/base/logging.h" #include "packager/base/strings/string_util.h" #include "packager/media/base/bit_reader.h" -#include "packager/media/base/rcheck.h" #include "packager/mpd/base/xml/scoped_xml_ptr.h" namespace edash_packager { @@ -25,6 +24,12 @@ namespace media { (static_cast(b) << 16) | (static_cast(c) << 8) | \ (static_cast(d))) +#define RCHECK(x) \ + do { \ + if (!(x)) \ + return false; \ + } while (0) + #define UTF8_BYTE_ORDER_MARK "\xef\xbb\xbf" // Helper function to read 2 bytes (16 bits, big endian) from a buffer.