Lines 21-27
Link Here
|
21 |
/* |
21 |
/* |
22 |
* AIFF File Demuxer by Mike Melanson (melanson@pcisys.net) |
22 |
* AIFF File Demuxer by Mike Melanson (melanson@pcisys.net) |
23 |
* |
23 |
* |
24 |
* $Id: demux_aiff.c,v 1.39 2004/06/13 21:28:52 miguelfreitas Exp $ |
24 |
* $Id: demux_aiff.c,v 1.40 2004/12/15 21:03:02 mroi Exp $ |
25 |
* |
25 |
* |
26 |
*/ |
26 |
*/ |
27 |
|
27 |
|
Lines 120-125
Link Here
|
120 |
} |
120 |
} |
121 |
chunk_type = BE_32(&preamble[0]); |
121 |
chunk_type = BE_32(&preamble[0]); |
122 |
chunk_size = BE_32(&preamble[4]); |
122 |
chunk_size = BE_32(&preamble[4]); |
|
|
123 |
|
124 |
if (chunk_size > sizeof(buffer) / sizeof(buffer[0])) { |
125 |
/* the chunk is too large to fit in the buffer -> this cannot be an aiff chunk */ |
126 |
this->status = DEMUX_FINISHED; |
127 |
return 0; |
128 |
} |
123 |
|
129 |
|
124 |
if (chunk_type == COMM_TAG) { |
130 |
if (chunk_type == COMM_TAG) { |
125 |
if (this->input->read(this->input, buffer, chunk_size) != |
131 |
if (this->input->read(this->input, buffer, chunk_size) != |