From: Anthony Minessale Date: Fri, 10 Feb 2012 23:27:50 +0000 (-0600) Subject: add debug X-Git-Tag: v1.2-rc1~19^2^2~68^2~103 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeeaf41ca9c1708a5dd5f226ebe755a82ec2cd32;p=thirdparty%2Ffreeswitch.git add debug --- diff --git a/src/switch_core_codec.c b/src/switch_core_codec.c index fd3c5e37f4..d5404c033c 100644 --- a/src/switch_core_codec.c +++ b/src/switch_core_codec.c @@ -757,7 +757,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_codec_decode(switch_codec_t *codec, uint32_t frames = encoded_data_len / codec->implementation->encoded_bytes_per_packet; if (frames && codec->implementation->decoded_bytes_per_packet * frames > *decoded_data_len) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Buffer size sanity check failed!\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "Buffer size sanity check failed! edl:%u ebpp:%u fr:%u ddl:%u\n", + encoded_data_len, codec->implementation->encoded_bytes_per_packet, frames, *decoded_data_len); *decoded_data_len = codec->implementation->decoded_bytes_per_packet; memset(decoded_data, 255, *decoded_data_len); return SWITCH_STATUS_SUCCESS;