# HG changeset patch # User bcoudurier # Date 1211838774 0 # Node ID 0dfa207c5d698ce5ccdfaded2a06864d1b7d72ed # Parent 8c5e331b50713d376380e75bc85dd805b56ea15f aac chan config is 0 if bitstream contains program_config_element diff -r 8c5e331b5071 -r 0dfa207c5d69 mov.c --- a/mov.c Mon May 26 20:29:16 2008 +0000 +++ b/mov.c Mon May 26 21:52:54 2008 +0000 @@ -408,7 +408,7 @@ 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