提交 391872e4 编写于 作者: B Baptiste Coudurier

aac chan config is 0 if bitstream contains program_config_element

Originally committed as revision 13437 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 2be83b96
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册