summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorAlex Converse <alex.converse@gmail.com>2009-11-11 20:24:23 +0000
committerAlex Converse <alex.converse@gmail.com>2009-11-11 20:24:23 +0000
commit5aea268d14b2973188589c89b275d8b248150446 (patch)
treeab2fca9255ac2087ffd0dbc809cd9bdb9b67231a /libavformat/mov.c
parentf2b7ce8ae68f9d262ce102605532d3520e279a67 (diff)
Add a channels field to MPEG4AudioConfig.
Originally committed as revision 20512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3d676308f9..196f41d1b4 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -434,9 +434,7 @@ int ff_mov_read_esds(AVFormatContext *fc, ByteIOContext *pb, MOVAtom atom)
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;
if (cfg.object_type == 29 && cfg.sampling_index < 3) // old mp3on4
st->codec->sample_rate = ff_mpa_freq_tab[cfg.sampling_index];
else