summaryrefslogtreecommitdiff
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-26 21:52:54 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-05-26 21:52:54 +0000
commit391872e467a1e72d78fbf6edf57ce1d528e744b6 (patch)
tree3fc65cc8cc423f6eecd1b19d3c1ba9bb78d1e780 /libavformat/mov.c
parent2be83b96b6d51fdc41c9d21e87e0f62f23ede263 (diff)
aac chan config is 0 if bitstream contains program_config_element
Originally committed as revision 13437 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index eca6a411f8..86a3e0b767 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -408,7 +408,7 @@ static int mov_read_esds(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
MPEG4AudioConfig cfg;
ff_mpeg4audio_get_config(&cfg, st->codec->extradata,
st->codec->extradata_size);
- if (!cfg.chan_config || cfg.chan_config > 7)
+ if (cfg.chan_config > 7)
return -1;
st->codec->channels = ff_mpeg4audio_channels[cfg.chan_config];
if (cfg.object_type == 29 && cfg.sampling_index < 3) // old mp3on4