提交 ed99e54d 编写于 作者: A Alex Converse

aacdec: Factorize if (elem_type < TYPE_DSE).

Originally committed as revision 23674 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 fda36b59
......@@ -2006,13 +2006,13 @@ static int aac_decode_frame(AVCodecContext *avctx, void *data,
while ((elem_type = get_bits(&gb, 3)) != TYPE_END) {
elem_id = get_bits(&gb, 4);
if (elem_type < TYPE_DSE && !(che=get_che(ac, elem_type, elem_id))) {
if (elem_type < TYPE_DSE) {
if (!(che=get_che(ac, elem_type, elem_id))) {
av_log(ac->avctx, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);
return -1;
}
if (elem_type < TYPE_DSE)
samples = 1024;
}
switch (elem_type) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册