ffmpeg: don't try to force stereo

The plugin code tried to force libavcodec to supply stereo samples.
That however has never actually worked.  By removing this code, we are
able to play surround files for the first time.
This commit is contained in:
Max Kellermann 2009-11-30 09:59:05 +01:00
parent 21fdf47b56
commit 16123f1b8e
2 changed files with 2 additions and 4 deletions

2
NEWS
View File

@ -1,4 +1,6 @@
ver 0.15.7 (2009/??/??)
* decoders:
- ffmpeg: don't try to force stereo
ver 0.15.6 (2009/11/18)

View File

@ -289,10 +289,6 @@ ffmpeg_decode_internal(struct ffmpeg_context *ctx)
total_time = 0;
if (codec_context->channels > 2) {
codec_context->channels = 2;
}
#if LIBAVCODEC_VERSION_INT >= ((51<<16)+(41<<8)+0)
audio_format.bits = (uint8_t) av_get_bits_per_sample_format(codec_context->sample_fmt);
#else