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.
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.

Review URL: http://codereview.chromium.org/125027

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@18406 0039d316-1c4b-4281-b951-d872f2087c98

adobe/chromium,gavinp/chromium,ropik/chromium,ropik/chromium,yitian134/chromium,gavinp/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium,ropik/chromium,yitian134/chromium,yitian134/chromium,gavinp/chromium,adobe/chromium,yitian134/chromium,yitian134/chromium,ropik/chromium,adobe/chromium,adobe/chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,ropik/chromium,gavinp/chromium,ropik/chromium,adobe/chromium,gavinp/chromium,yitian134/chromium,gavinp/chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,Crystalnix/house-of-life-chromium,ropik/chromium,Crystalnix/house-of-life-chromium,yitian134/chromium,adobe/chromium,ropik/chromium,adobe/chromium,adobe/chromium,adobe/chromium,Crystalnix/house-of-life-chromium,Crystalnix/house-of-life-chromium,gavinp/chromium,adobe/chromium