obs-ffmpeg: Fix bug where update_sws_context result not checked

This commit is contained in:
John Bradley
2015-03-10 14:33:21 -05:00
parent 361522198e
commit a73c15ae16

View File

@@ -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,