FS-9355: fix segfault in case of null frame
This commit is contained in:
parent
b353922488
commit
0df7e787ce
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue