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

Unified Diff: webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc

Issue 11929015: Tighten up media::DecoderBuffer API contract for end of stream buffers (round 2). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
diff --git a/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc b/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
index eba597d9e3037a12cd80b2e4e592ce07a087b90d..df35f2e7048fbcf57a08cb6cd89a23668289293d 100644
--- a/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
+++ b/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc
@@ -188,7 +188,7 @@ cdm::Status FFmpegCdmAudioDecoder::DecodeBuffer(
int64_t input_timestamp,
cdm::AudioFrames* decoded_frames) {
DVLOG(1) << "DecodeBuffer()";
- const bool is_end_of_stream = compressed_buffer_size == 0;
+ const bool is_end_of_stream = !compressed_buffer;
base::TimeDelta timestamp =
base::TimeDelta::FromMicroseconds(input_timestamp);

Powered by Google App Engine
This is Rietveld 408576698