From fc90504b998b23f99f5a624ef847ab259ad5f4e4 Mon Sep 17 00:00:00 2001 From: Mike Melanson Date: Sun, 6 Mar 2005 14:48:50 +0000 Subject: 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 --- libavcodec/alac.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/libavcodec/alac.c b/libavcodec/alac.c index c0c7fdf3bf..79555e7bee 100644 --- a/libavcodec/alac.c +++ b/libavcodec/alac.c @@ -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]; -- cgit v1.2.3