summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 19:58:43 +0000
committerfbarchard@chromium.org <fbarchard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-02 19:58:43 +0000
commitda0c60e1ddb58f533316faf4a84ffbe354599eaa (patch)
treed1ee302f62966930f1a646489d17bc7361426874 /media
parent9d0306ea37fc72415a221642294300dde89c44f7 (diff)
downloadchromium_src-da0c60e1ddb58f533316faf4a84ffbe354599eaa.zip
chromium_src-da0c60e1ddb58f533316faf4a84ffbe354599eaa.tar.gz
chromium_src-da0c60e1ddb58f533316faf4a84ffbe354599eaa.tar.bz2
Ignore audio decode errors in the same way video decode errors are done.
BUG=18040 TEST=2:48 this video has an error http://fbarchard-v64.ad.corp.google.com/mediatests/dailymotion.html Review URL: http://codereview.chromium.org/190013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25220 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media')
-rw-r--r--media/filters/ffmpeg_audio_decoder.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/media/filters/ffmpeg_audio_decoder.cc b/media/filters/ffmpeg_audio_decoder.cc
index 5bbe4e5..07c09ac 100644
--- a/media/filters/ffmpeg_audio_decoder.cc
+++ b/media/filters/ffmpeg_audio_decoder.cc
@@ -101,7 +101,12 @@ void FFmpegAudioDecoder::OnDecode(Buffer* input) {
if (result < 0 ||
output_buffer_size < 0 ||
static_cast<size_t>(output_buffer_size) > kOutputBufferSize) {
- host()->SetError(PIPELINE_ERROR_DECODE);
+ LOG(INFO) << "Error decoding an audio frame with timestamp: "
+ << input->GetTimestamp().InMicroseconds() << " us"
+ << " , duration: "
+ << input->GetDuration().InMicroseconds() << " us"
+ << " , packet size: "
+ << input->GetDataSize() << " bytes";
return;
}