Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(682)

Unified Diff: media/mp4/mp4_stream_parser.cc

Issue 27374002: Add support for avc3 codec string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR comments Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mp4/fourccs.h ('k') | media/test/data/bear-1280x720-v_frag-avc3.mp4 » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mp4/mp4_stream_parser.cc
diff --git a/media/mp4/mp4_stream_parser.cc b/media/mp4/mp4_stream_parser.cc
index 26cee44d14e8c9d2ac99108d4c8e8f1c87fa3ef0..19855abc231ab2f6a8f2b80f3c1deed2d8e735e6 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;
« no previous file with comments | « media/mp4/fourccs.h ('k') | media/test/data/bear-1280x720-v_frag-avc3.mp4 » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698