|
|
|
@@ -790,10 +790,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) |
|
|
|
srcW, srcH, dstW, dstH); |
|
|
|
return AVERROR(EINVAL); |
|
|
|
} |
|
|
|
if(srcW > VOFW || dstW > VOFW) { |
|
|
|
av_log(NULL, AV_LOG_ERROR, "swScaler: Compile-time maximum width is "AV_STRINGIFY(VOFW)" change VOF/VOFW and recompile\n"); |
|
|
|
return AVERROR(EINVAL); |
|
|
|
} |
|
|
|
FF_ALLOC_OR_GOTO(c, c->formatConvBuffer, FFALIGN(srcW, 16) * 2, fail); |
|
|
|
|
|
|
|
if (!dstFilter) dstFilter= &dummyFilter; |
|
|
|
if (!srcFilter) srcFilter= &dummyFilter; |
|
|
|
@@ -1507,6 +1504,7 @@ void sws_freeContext(SwsContext *c) |
|
|
|
#endif /* HAVE_MMX */ |
|
|
|
|
|
|
|
av_freep(&c->yuvTable); |
|
|
|
av_free(c->formatConvBuffer); |
|
|
|
|
|
|
|
av_free(c); |
|
|
|
} |
|
|
|
|