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

Unified Diff: media/filters/opus_audio_decoder.cc

Issue 311373004: Consolidate and improve audio decoding test for all decoders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. DEPS roll. Created 6 years, 6 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: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index 938e984c37f51c740d9d68c6710962ceb8f36870..f96b7024062d6ef02c1da589590c488c1877626b 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -298,7 +298,10 @@ void OpusAudioDecoder::DecodeBuffer(
DCHECK(task_runner_->BelongsToCurrentThread());
DCHECK(!decode_cb.is_null());
- DCHECK(input.get());
+ if (!input) {
+ decode_cb.Run(kAborted, NULL);
+ return;
+ }
// Libopus does not buffer output. Decoding is complete when an end of stream
// input buffer is received.

Powered by Google App Engine
This is Rietveld 408576698