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

Unified Diff: media/formats/mp4/mp4_stream_parser.cc

Issue 379983002: Fix AnnexB validation logic to work with encrypted content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address CR comment Created 6 years, 5 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/formats/mp4/avc_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/mp4_stream_parser.cc
diff --git a/media/formats/mp4/mp4_stream_parser.cc b/media/formats/mp4/mp4_stream_parser.cc
index 8ec925cd0a67328386dc148cbe6dd67958cbe4dd..7ad3ccc38649a726fcbf1133507241fb809a73c3 100644
--- a/media/formats/mp4/mp4_stream_parser.cc
+++ b/media/formats/mp4/mp4_stream_parser.cc
@@ -383,8 +383,7 @@ bool MP4StreamParser::PrepareAVCBuffer(
RCHECK(AVC::InsertParamSetsAnnexB(avc_config, frame_buf, subsamples));
}
- // TODO(acolwell): Improve IsValidAnnexB() so it can handle encrypted content.
- DCHECK(runs_->is_encrypted() || AVC::IsValidAnnexB(*frame_buf));
+ DCHECK(AVC::IsValidAnnexB(*frame_buf, *subsamples));
return true;
}
« no previous file with comments | « media/formats/mp4/avc_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698