Merge pull request #913 in FS/freeswitch from ~FRANCOIS/freeswitch-fs-9355:master to master

* commit '0df7e787ce38bdd5c2e61fac37c1e92425bc5366':
  FS-9355: fix segfault in case of null frame
This commit is contained in:
Anthony Minessale II 2016-07-18 10:13:52 -05:00
commit 0beda620dd
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 {