[Ffmpeg-cvslog] r7561 - trunk/libavcodec/imgresample.c

takis subversion
Wed Jan 17 11:26:14 CET 2007


Author: takis
Date: Wed Jan 17 11:26:13 2007
New Revision: 7561

Modified:
   trunk/libavcodec/imgresample.c

Log:
fix segfault with http://sam.zoy.org/zzuf/lol-ffplay.ogm and
http://sam.zoy.org/zzuf/lol-ffplay.ogg


Modified: trunk/libavcodec/imgresample.c
==============================================================================
--- trunk/libavcodec/imgresample.c	(original)
+++ trunk/libavcodec/imgresample.c	Wed Jan 17 11:26:13 2007
@@ -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);




More information about the ffmpeg-cvslog mailing list