comparison aac.c @ 8813:13db7a524778 libavcodec

Give an error message when returning due to an unallocated channel element Patch by Alex Converse ( alex converse gmail com )
author superdump
date Thu, 12 Feb 2009 13:47:21 +0000
parents 541889e539b8
children ac7958d25361
comparison
equal deleted inserted replaced
8812:541889e539b8 8813:13db7a524778
1574 ac->che[TYPE_SCE][elem_id] = ac->che[TYPE_LFE][0]; 1574 ac->che[TYPE_SCE][elem_id] = ac->che[TYPE_LFE][0];
1575 ac->che[TYPE_LFE][0] = NULL; 1575 ac->che[TYPE_LFE][0] = NULL;
1576 } 1576 }
1577 if(elem_type < TYPE_DSE) { 1577 if(elem_type < TYPE_DSE) {
1578 if(!ac->che[elem_type][elem_id]) 1578 if(!ac->che[elem_type][elem_id])
1579 {
1580 av_log(ac->avccontext, AV_LOG_ERROR, "channel element %d.%d is not allocated\n", elem_type, elem_id);
1579 return -1; 1581 return -1;
1582 }
1580 } 1583 }
1581 1584
1582 switch (elem_type) { 1585 switch (elem_type) {
1583 1586
1584 case TYPE_SCE: 1587 case TYPE_SCE: