Detect audio stream type only after stream switch.

This commit is contained in:
Johns
2012-02-11 18:22:48 +01:00
parent baa4500a2c
commit a91533f6d1
6 changed files with 92 additions and 87 deletions

View File

@@ -877,7 +877,7 @@ void CodecAudioDecode(AudioDecoder * audio_decoder, const AVPacket * avpkt)
int err;
int isAC3;
// FIXME: use swr_convert from swresample
// FIXME: use swr_convert from swresample (only in ffmpeg!)
// FIXME: tell ac3 decoder to use downmix
if (audio_decoder->ReSample) {
audio_resample_close(audio_decoder->ReSample);