diff --git a/libswscale/utils.c b/libswscale/utils.c index eb690740fd..66d22811f8 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1567,11 +1567,15 @@ struct SwsContext *sws_getCachedContext(struct SwsContext *context, param = default_param; if (context && - (context->srcW != srcW || context->srcH != srcH || - context->srcFormat != srcFormat || - context->dstW != dstW || context->dstH != dstH || - context->dstFormat != dstFormat || context->flags != flags || - context->param[0] != param[0] || context->param[1] != param[1])) + (context->srcW != srcW || + context->srcH != srcH || + context->srcFormat != srcFormat || + context->dstW != dstW || + context->dstH != dstH || + context->dstFormat != dstFormat || + context->flags != flags || + context->param[0] != param[0] || + context->param[1] != param[1])) { sws_freeContext(context); context = NULL;