# HG changeset patch # User melanson # Date 1110120530 0 # Node ID 621cc4a94695547033ecc63aba1948773141f0c4 # Parent 2b9fc44b8615adb0b837cd1f125440837f8afbc1 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 diff -r 2b9fc44b8615 -r 621cc4a94695 alac.c --- 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];