Fix swscale failing on resolution change. Fixes #3161

pull/3164/head
Isaac Connor 2021-02-12 11:55:25 -05:00
parent 5a910c4a4b
commit 99264e4072
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ void Image::Assign(const AVFrame *frame) {
#if HAVE_LIBSWSCALE
sws_convert_context = sws_getCachedContext(
sws_convert_context,
width, height, (AVPixelFormat)frame->format,
frame->width, frame->height, (AVPixelFormat)frame->format,
width, height, format,
SWS_BICUBIC, nullptr, nullptr, nullptr);
if ( sws_convert_context == nullptr )