summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 20:44:02 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-17 20:44:02 +0000
commit7f907d82eb528e84befef5ddd9c1347c18d6ad77 (patch)
tree853733f51bf77e3c176a534125b2343ce19f098b /media
parent777f996eab1610f9676ee62ee478cc97687c56cd (diff)
downloadchromium_src-7f907d82eb528e84befef5ddd9c1347c18d6ad77.zip
chromium_src-7f907d82eb528e84befef5ddd9c1347c18d6ad77.tar.gz
chromium_src-7f907d82eb528e84befef5ddd9c1347c18d6ad77.tar.bz2
Fixes bug in FFmpegAudioDecoder where we weren't setting the usable data size.
BUG=none TEST=audio should decode again Review URL: http://codereview.chromium.org/155703 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_audio_decoder.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index edb7a02..422709a 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -108,6 +108,7 @@ void FFmpegAudioDecoder::OnDecode(Buffer* input) {
// If we have decoded something, enqueue the result.
if (output_buffer_size) {
DataBuffer* result_buffer = new DataBuffer(output_buffer_size);
+ result_buffer->SetDataSize(output_buffer_size);
uint8* data = result_buffer->GetWritableData();
memcpy(data, output_buffer, output_buffer_size);