From 0df7e787ce38bdd5c2e61fac37c1e92425bc5366 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Mon, 18 Jul 2016 11:22:01 +0200 Subject: [PATCH] FS-9355: fix segfault in case of null frame --- src/switch_core_media.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_core_media.c b/src/switch_core_media.c index 33de186fab..c73b73fa00 100644 --- a/src/switch_core_media.c +++ b/src/switch_core_media.c @@ -11697,7 +11697,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_read_video_frame(switch_core } } - if ((*frame)->codec) { + if ((*frame) && (*frame)->codec) { if (patchers) { switch_set_flag((*frame)->codec, SWITCH_CODEC_FLAG_VIDEO_PATCHING); } else {