FS-9355: fix segfault in case of null frame

This commit is contained in:
François 2016-07-18 11:22:01 +02:00
parent b353922488
commit 0df7e787ce
1 changed files with 1 additions and 1 deletions

View 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 {