diff libmpcodecs/vd_ffmpeg.c @ 32537:8fa2f43cb760

Remove most of the NULL pointer check before free all over the code
author cboesch
date Sun, 14 Nov 2010 09:12:34 +0000
parents 97738e6f82dc
children 9ec31cdc76ad
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sat Nov 13 10:23:34 2010 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Nov 14 09:12:34 2010 +0000
@@ -480,8 +480,7 @@
 
     av_freep(&avctx);
     av_freep(&ctx->pic);
-    if (ctx)
-        free(ctx);
+    free(ctx);
 }
 
 static void draw_slice(struct AVCodecContext *s,