get rid of nasty exit()'s so the decoder will only warn the user before

it runs off the end of a buffer; eventually, this should be replaced
with FFmpeg's internal bit reader which is hopefully more robust

Originally committed as revision 4012 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Mike Melanson 2005-03-06 14:48:50 +00:00
parent 647b610c6e
commit fc90504b99

View File

@ -134,7 +134,6 @@ static uint32_t readbits_16(alac_file *alac, int bits)
if (alac->input_buffer_index + 2 >= alac->input_buffer_size) {
av_log(NULL, AV_LOG_ERROR, "alac: input buffer went out of bounds (%d >= %d)\n",
alac->input_buffer_index + 2, alac->input_buffer_size);
// exit (0);
}
result = (alac->input_buffer[alac->input_buffer_index + 0] << 16) |
(alac->input_buffer[alac->input_buffer_index + 1] << 8) |
@ -186,7 +185,6 @@ static int readbit(alac_file *alac)
if (alac->input_buffer_index >= alac->input_buffer_size) {
av_log(NULL, AV_LOG_ERROR, "alac: input buffer went out of bounds (%d >= %d)\n",
alac->input_buffer_index + 2, alac->input_buffer_size);
exit (0);
}
result = alac->input_buffer[alac->input_buffer_index];