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

Unified Diff: media/formats/mp4/track_run_iterator.h

Issue 1998333002: MP4 support for Common Encryption 'cbcs' scheme. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another ddorwin comment Created 4 years 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/mp4_stream_parser.cc ('k') | media/formats/mp4/track_run_iterator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp4/track_run_iterator.h
diff --git a/media/formats/mp4/track_run_iterator.h b/media/formats/mp4/track_run_iterator.h
index a04f2becb5c0f44b6d35f37524a3cbd49e7d6deb..127cafa8a6671fcb971282b4f4cfa87894a227d1 100644
--- a/media/formats/mp4/track_run_iterator.h
+++ b/media/formats/mp4/track_run_iterator.h
@@ -17,6 +17,7 @@
#include "media/base/media_log.h"
#include "media/base/stream_parser_buffer.h"
#include "media/formats/mp4/box_definitions.h"
+#include "media/media_features.h"
namespace media {
@@ -99,6 +100,9 @@ class MEDIA_EXPORT TrackRunIterator {
bool IsSampleEncrypted(size_t sample_index) const;
uint8_t GetIvSize(size_t sample_index) const;
const std::vector<uint8_t>& GetKeyId(size_t sample_index) const;
+#if BUILDFLAG(ENABLE_CBCS_ENCRYPTION_SCHEME)
+ bool ApplyConstantIv(size_t sample_index, SampleEncryptionEntry* entry) const;
+#endif
const Movie* moov_;
scoped_refptr<MediaLog> media_log_;
« no previous file with comments | « media/formats/mp4/mp4_stream_parser.cc ('k') | media/formats/mp4/track_run_iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698