mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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:
parent
647b610c6e
commit
fc90504b99
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user