comparison aac.c @ 7732:5d93ceaa7a2c libavcodec

Remove unnecessary portion of a condition. This fixes issue607 and avoids another unintended bug where channel coupling could have been run on an SCE.
author superdump
date Fri, 29 Aug 2008 20:18:34 +0000
parents 66fb1f3937fa
children 50a75afca76f
comparison
equal deleted inserted replaced
7731:4604ce2ea3ad 7732:5d93ceaa7a2c
1346 instead of SCE[0] CPE[0] CPE[0] LFE[0]. If we seem to have 1346 instead of SCE[0] CPE[0] CPE[0] LFE[0]. If we seem to have
1347 encountered such a stream, transfer the LFE[0] element to SCE[1] */ 1347 encountered such a stream, transfer the LFE[0] element to SCE[1] */
1348 ac->che[TYPE_SCE][elem_id] = ac->che[TYPE_LFE][0]; 1348 ac->che[TYPE_SCE][elem_id] = ac->che[TYPE_LFE][0];
1349 ac->che[TYPE_LFE][0] = NULL; 1349 ac->che[TYPE_LFE][0] = NULL;
1350 } 1350 }
1351 if(elem_type && elem_type < TYPE_DSE) { 1351 if(elem_type < TYPE_DSE) {
1352 if(!ac->che[elem_type][elem_id]) 1352 if(!ac->che[elem_type][elem_id])
1353 return -1; 1353 return -1;
1354 if(elem_type != TYPE_CCE) 1354 if(elem_type != TYPE_CCE)
1355 ac->che[elem_type][elem_id]->coup.coupling_point = 4; 1355 ac->che[elem_type][elem_id]->coup.coupling_point = 4;
1356 } 1356 }