From f6484f5bf4dabc7964d9573cb81dd8e6a801f0a9 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Thu, 11 Dec 2014 14:19:22 +0800 Subject: [PATCH] FS-7517: add warning dropped from 0353e45 back in case it still happens --- src/mod/codecs/mod_openh264/mod_openh264.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mod/codecs/mod_openh264/mod_openh264.cpp b/src/mod/codecs/mod_openh264/mod_openh264.cpp index 24ae9c811f..6db8e83b69 100644 --- a/src/mod/codecs/mod_openh264/mod_openh264.cpp +++ b/src/mod/codecs/mod_openh264/mod_openh264.cpp @@ -276,6 +276,12 @@ static switch_status_t nalu_slice(h264_codec_context_t *context, switch_frame_t switch_assert(nalu_len > 0); +#ifdef MT_ENABLED + if (nalu_len > SLICE_SIZE) { + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "LARGE SLICE OVER MTU %d BYTES\n", nalu_len); + } +#endif + if (nalu_len <= SLICE_SIZE) { uint8_t nalu_type;