]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
add debug
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 23:27:50 +0000 (17:27 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 10 Feb 2012 23:27:50 +0000 (17:27 -0600)
src/switch_core_codec.c

index fd3c5e37f4909e662613a39bbe7f59f3391a6bc8..d5404c033c0604f513f53515b8db9bed10e4f188 100644 (file)
@@ -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;