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

Unified Diff: media/filters/opus_audio_decoder.cc

Issue 111153003: FFmpeg fixups for M33 roll. Now with more Opus! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DEPS update. Created 7 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/filters/ffmpeg_video_decoder.cc ('k') | media/filters/pipeline_integration_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/opus_audio_decoder.cc
diff --git a/media/filters/opus_audio_decoder.cc b/media/filters/opus_audio_decoder.cc
index 7aa931930aecc1bc249f06fe7e9e73a0f0a57f96..37e1abda698328542350b510558a1763cda60392 100644
--- a/media/filters/opus_audio_decoder.cc
+++ b/media/filters/opus_audio_decoder.cc
@@ -601,11 +601,13 @@ bool OpusAudioDecoder::Decode(const scoped_refptr<DecoderBuffer>& input,
// Decoding finished successfully, update statistics.
PipelineStatistics statistics;
- statistics.audio_bytes_decoded =
- frames_decoded *
- demuxer_stream_->audio_decoder_config().bytes_per_frame();
+ statistics.audio_bytes_decoded = input->data_size();
statistics_cb_.Run(statistics);
+ // Discard the buffer to indicate we need more data.
+ if (!frames_decoded)
+ *output_buffer = NULL;
+
return true;
}
« no previous file with comments | « media/filters/ffmpeg_video_decoder.cc ('k') | media/filters/pipeline_integration_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698