Skip to content
Snippets Groups Projects
Commit 04675319 authored by Panagiotis Issaris's avatar Panagiotis Issaris
Browse files
parent e56cfad0
No related branches found
No related tags found
No related merge requests found
......@@ -672,6 +672,8 @@ struct SwsContext *sws_getContext(int srcW, int srcH, int srcFormat,
void sws_freeContext(struct SwsContext *ctx)
{
if (!ctx)
return;
if ((ctx->resampling_ctx->iwidth != ctx->resampling_ctx->owidth) ||
(ctx->resampling_ctx->iheight != ctx->resampling_ctx->oheight)) {
img_resample_close(ctx->resampling_ctx);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment