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

Unified Diff: media/filters/android/media_codec_audio_decoder.cc

Issue 1905423003: [Merged] media: Properly tell whether the buffer is encrypted (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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/base/decrypt_config.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/android/media_codec_audio_decoder.cc
diff --git a/media/filters/android/media_codec_audio_decoder.cc b/media/filters/android/media_codec_audio_decoder.cc
index c3bca6a7cee874e0e1bd32dbababa53a3c028736..dbcd801a0fc84024b2340378188e6d2d35e22f2f 100644
--- a/media/filters/android/media_codec_audio_decoder.cc
+++ b/media/filters/android/media_codec_audio_decoder.cc
@@ -417,7 +417,7 @@ bool MediaCodecAudioDecoder::EnqueueInputBuffer(
media::MediaCodecStatus status = MEDIA_CODEC_OK;
const DecryptConfig* decrypt_config = decoder_buffer->decrypt_config();
- if (decrypt_config) {
+ if (decrypt_config && decrypt_config->is_encrypted()) {
// A pending buffer is already filled with data, no need to copy it again.
const uint8_t* memory =
input_info.is_pending ? nullptr : decoder_buffer->data();
« no previous file with comments | « media/base/decrypt_config.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698