AAC: Cosmetic alterations after the last commit

Originally committed as revision 17182 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Robert Swain 2009-02-12 13:49:59 +00:00
parent b2d9d4a531
commit 5f401ee03c
1 changed files with 3 additions and 6 deletions

View File

@ -1574,12 +1574,9 @@ static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data
ac->che[TYPE_SCE][elem_id] = ac->che[TYPE_LFE][0];
ac->che[TYPE_LFE][0] = NULL;
}
if(elem_type < TYPE_DSE) {
if(!ac->che[elem_type][elem_id])
{
av_log(ac->avccontext, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);
return -1;
}
if(elem_type < TYPE_DSE && !ac->che[elem_type][elem_id]) {
av_log(ac->avccontext, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);
return -1;
}
switch (elem_type) {