Commit 72d53001 authored by acolwell@chromium.org's avatar acolwell@chromium.org

Convert a few LOG statements to MEDIA_LOG in MP4StreamParser.


BUG=None


Review URL: https://chromiumcodereview.appspot.com/11778004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175237 0039d316-1c4b-4281-b951-d872f2087c98
parent 396a0cdd
...@@ -196,12 +196,15 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) { ...@@ -196,12 +196,15 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
if (!(entry.format == FOURCC_MP4A || if (!(entry.format == FOURCC_MP4A ||
(entry.format == FOURCC_ENCA && (entry.format == FOURCC_ENCA &&
entry.sinf.format.format == FOURCC_MP4A))) { entry.sinf.format.format == FOURCC_MP4A))) {
LOG(ERROR) << "Unsupported audio format."; MEDIA_LOG(log_cb_) << "Unsupported audio format 0x"
<< std::hex << entry.format << " in stsd box.";
return false; return false;
} }
// Check if it is MPEG4 AAC defined in ISO 14496 Part 3. // Check if it is MPEG4 AAC defined in ISO 14496 Part 3.
if (entry.esds.object_type != kISO_14496_3) { if (entry.esds.object_type != kISO_14496_3) {
LOG(ERROR) << "Unsupported audio object type."; MEDIA_LOG(log_cb_) << "Unsupported audio object type 0x" << std::hex
<< static_cast<int>(entry.esds.object_type)
<< " in esds.";
return false; return false;
} }
...@@ -234,7 +237,8 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) { ...@@ -234,7 +237,8 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
if (!(entry.format == FOURCC_AVC1 || if (!(entry.format == FOURCC_AVC1 ||
(entry.format == FOURCC_ENCV && (entry.format == FOURCC_ENCV &&
entry.sinf.format.format == FOURCC_AVC1))) { entry.sinf.format.format == FOURCC_AVC1))) {
LOG(ERROR) << "Unsupported video format."; MEDIA_LOG(log_cb_) << "Unsupported video format 0x"
<< std::hex << entry.format << " in stsd box.";
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment