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

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

Issue 757953002: Add SubsampleEntry constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 1 month 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/cdm/ppapi/external_clear_key/clear_key_cdm.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 c6163bf35b693cdb4c160ca1dfd8c2585ec3976e..0c550f76da49da8d9c954745c35d648d488a0550 100644
--- a/media/formats/mp4/mp4_stream_parser.cc
+++ b/media/formats/mp4/mp4_stream_parser.cc
@@ -395,10 +395,8 @@ bool MP4StreamParser::PrepareAACBuffer(
// As above, adjust subsample information to account for the headers. AAC is
// not required to use subsample encryption, so we may need to add an entry.
if (subsamples->empty()) {
- SubsampleEntry entry;
- entry.clear_bytes = kADTSHeaderMinSize;
- entry.cypher_bytes = frame_buf->size() - kADTSHeaderMinSize;
- subsamples->push_back(entry);
+ subsamples->push_back(SubsampleEntry(
+ kADTSHeaderMinSize, frame_buf->size() - kADTSHeaderMinSize));
} else {
(*subsamples)[0].clear_bytes += kADTSHeaderMinSize;
}
« no previous file with comments | « media/cdm/ppapi/external_clear_key/clear_key_cdm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698