Allow parsing and decoding of ADTS AAC files with channel config = 0

Originally committed as revision 18815 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Converse
2009-05-13 17:57:58 +00:00
parent ee373ddffd
commit 90350d73f8
3 changed files with 2 additions and 9 deletions

View File

@ -84,8 +84,10 @@ get_next:
avctx->codec_id == CODEC_ID_EAC3)))) {
avctx->channels = avctx->request_channels;
} else {
if (avctx->codec_id != CODEC_ID_AAC || s->channels) {
avctx->channels = s->channels;
avctx->channel_layout = s->channel_layout;
}
}
avctx->bit_rate = s->bit_rate;
avctx->frame_size = s->samples;