mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
Give an error message when returning due to an unallocated channel element
Patch by Alex Converse ( alex converse gmail com ) Originally committed as revision 17181 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
30272450f9
commit
b2d9d4a531
@ -1576,7 +1576,10 @@ static int aac_decode_frame(AVCodecContext * avccontext, void * data, int * data
|
||||
}
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
switch (elem_type) {
|
||||
|
Loading…
Reference in New Issue
Block a user