]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9355: fix segfault in case of null frame
authorFrançois <fdelawarde@wirelessmundi.com>
Mon, 18 Jul 2016 09:22:01 +0000 (11:22 +0200)
committerFrançois <fdelawarde@wirelessmundi.com>
Mon, 18 Jul 2016 09:22:01 +0000 (11:22 +0200)
src/switch_core_media.c

index 33de186fab44244ea81d99f8b2beb0f14939cfce..c73b73fa00cddd6b000b6be0c20ad7edd4489617 100644 (file)
@@ -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 {