summaryrefslogtreecommitdiffstats
path: root/media/mp4/mp4_stream_parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'media/mp4/mp4_stream_parser.cc')
-rw-r--r--media/mp4/mp4_stream_parser.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/media/mp4/mp4_stream_parser.cc b/media/mp4/mp4_stream_parser.cc
index 26cee44..19855ab 100644
--- a/media/mp4/mp4_stream_parser.cc
+++ b/media/mp4/mp4_stream_parser.cc
@@ -268,9 +268,7 @@ bool MP4StreamParser::ParseMoov(BoxReader* reader) {
desc_idx = 0;
const VideoSampleEntry& entry = samp_descr.video_entries[desc_idx];
- if (!(entry.format == FOURCC_AVC1 ||
- (entry.format == FOURCC_ENCV &&
- entry.sinf.format.format == FOURCC_AVC1))) {
+ if (!entry.IsFormatValid()) {
MEDIA_LOG(log_cb_) << "Unsupported video format 0x"
<< std::hex << entry.format << " in stsd box.";
return false;