Fix swscale failing on resolution change. Fixes #3161
parent
5a910c4a4b
commit
99264e4072
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue