Mercurial > libavcodec.hg
changeset 11903:f3e007b379e5 libavcodec
aacdec: Factorize if (elem_type < TYPE_DSE).
author | alexc |
---|---|
date | Mon, 21 Jun 2010 04:07:19 +0000 |
parents | c883aa4aa616 |
children | 09a48810ded6 |
files | aacdec.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/aacdec.c Mon Jun 21 04:05:09 2010 +0000 +++ b/aacdec.c Mon Jun 21 04:07:19 2010 +0000 @@ -2006,13 +2006,13 @@ 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) {