diff options
author | Mike Melanson <mike@multimedia.cx> | 2005-03-06 14:48:50 +0000 |
---|---|---|
committer | Mike Melanson <mike@multimedia.cx> | 2005-03-06 14:48:50 +0000 |
commit | fc90504b998b23f99f5a624ef847ab259ad5f4e4 (patch) | |
tree | 46350e52b22dd368ee7bebb3d5e12999c16c8159 /libavcodec/alac.c | |
parent | 647b610c6edfdbc11d5af1f24f12ece444ca9473 (diff) | |
download | ffmpeg-fc90504b998b23f99f5a624ef847ab259ad5f4e4.tar.gz |
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
Diffstat (limited to 'libavcodec/alac.c')
-rw-r--r-- | libavcodec/alac.c | 2 |
1 files changed, 0 insertions, 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]; |