Mercurial > libavformat.hg
changeset 3362:0dfa207c5d69 libavformat
aac chan config is 0 if bitstream contains program_config_element
author | bcoudurier |
---|---|
date | Mon, 26 May 2008 21:52:54 +0000 |
parents | 8c5e331b5071 |
children | 912490c90970 |
files | mov.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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