Mercurial > libavformat.hg
diff flvdec.c @ 5362:6f5a1064e48a libavformat
Add a channels field to MPEG4AudioConfig.
author | alexc |
---|---|
date | Wed, 11 Nov 2009 20:24:23 +0000 |
parents | 360f4a07ce5e |
children | 58056ca84fb1 |
line wrap: on
line diff
--- a/flvdec.c Mon Nov 09 01:10:55 2009 +0000 +++ b/flvdec.c Wed Nov 11 20:24:23 2009 +0000 @@ -410,9 +410,7 @@ MPEG4AudioConfig cfg; ff_mpeg4audio_get_config(&cfg, st->codec->extradata, st->codec->extradata_size); - if (cfg.chan_config > 7) - return -1; - st->codec->channels = ff_mpeg4audio_channels[cfg.chan_config]; + st->codec->channels = cfg.channels; st->codec->sample_rate = cfg.sample_rate; dprintf(s, "mp4a config channels %d sample rate %d\n", st->codec->channels, st->codec->sample_rate);