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

Issue 125027: Fixing bug that 8bit PCM stream is gabbled... (Closed)

Created:
11 years, 6 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, fbarchard, awong
Visibility:
Public.

Description

Fixing bug that 8bit PCM stream is gabbled The CodecContext passed into FFmpegAudioDecoder by the FFmpegDemuxer says the output samples are 16bits. So we tell the audio renderer to create a 16bits audio output stream. But after the decoder is allocated by avcodec_find_codec, the sample bits information in |codec_context_| is changed to 8bit! So we are feeding 16bits output stream with 8bits data. The decoder should knows more about the actual output format. So query the sample bits information after the decoder is allocated. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18406

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
MM media/filters/ffmpeg_audio_decoder.cc View 1 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Alpha Left Google
Swapping orders of getting the sample bits/rate values from the decoder. This is to kick ...
11 years, 6 months ago (2009-06-12 00:53:57 UTC) #1
scherkus (not reviewing)
LGTM after fixing ntis (and don't forget to merge with ToT!) http://codereview.chromium.org/125027/diff/1/2 File media/filters/ffmpeg_audio_decoder.cc (right): ...
11 years, 6 months ago (2009-06-15 17:40:04 UTC) #2
Alpha Left Google
11 years, 6 months ago (2009-06-15 18:16:58 UTC) #3
On 2009/06/15 17:40:04, scherkus wrote:
> LGTM after fixing ntis (and don't forget to merge with ToT!)
> 
> http://codereview.chromium.org/125027/diff/1/2
> File media/filters/ffmpeg_audio_decoder.cc (right):
> 
> http://codereview.chromium.org/125027/diff/1/2#newcode52
> Line 52: // By doing avcodec_find_decoder(), |codec_context_| maybe altered by
> the
> nits:
> "By doing" -> "When calling"
> "maybe" -> "might be"

Issues addressed.

Powered by Google App Engine
This is Rietveld 408576698