# HG changeset patch # User takis # Date 1169029573 0 # Node ID 1654075b205cd26a083b132000114db4cc7f978c # Parent c8bc01fee4094b4bb0690606731369a1c3452d94 fix segfault with http://sam.zoy.org/zzuf/lol-ffplay.ogm and http://sam.zoy.org/zzuf/lol-ffplay.ogg diff -r c8bc01fee409 -r 1654075b205c imgresample.c --- a/imgresample.c Tue Jan 16 23:28:41 2007 +0000 +++ b/imgresample.c Wed Jan 17 10:26:13 2007 +0000 @@ -672,6 +672,8 @@ 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);