From 7f907d82eb528e84befef5ddd9c1347c18d6ad77 Mon Sep 17 00:00:00 2001 From: "scherkus@chromium.org" Date: Fri, 17 Jul 2009 20:44:02 +0000 Subject: 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 --- media/filters/ffmpeg_audio_decoder.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'media') 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); -- cgit v1.1