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;