Commit bd8ad477 authored by melanson's avatar melanson

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4012 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 454902f4
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment