diff --git a/plugins/obs-ffmpeg/obs-ffmpeg-source.c b/plugins/obs-ffmpeg/obs-ffmpeg-source.c index 2341ab2ab..5398e5850 100644 --- a/plugins/obs-ffmpeg/obs-ffmpeg-source.c +++ b/plugins/obs-ffmpeg/obs-ffmpeg-source.c @@ -127,7 +127,8 @@ static bool video_frame_scale(struct ff_frame *frame, uint8_t *picture_data = malloc(linesize * frame->frame->height); - update_sws_context(s, frame->frame); + if (!update_sws_context(s, frame->frame)) + return false; sws_scale( s->sws_ctx,