Mercurial > libavcodec.hg
changeset 2546:621cc4a94695 libavcodec
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
author | melanson |
---|---|
date | Sun, 06 Mar 2005 14:48:50 +0000 |
parents | 2b9fc44b8615 |
children | c5781912ad8a |
files | alac.c |
diffstat | 1 files changed, 0 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/alac.c Sun Mar 06 14:42:10 2005 +0000 +++ b/alac.c Sun Mar 06 14:48:50 2005 +0000 @@ -134,7 +134,6 @@ 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 @@ 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];