OSDN Git Service

Remove forgotten if (p) av_free(p) forms
authorClément Bœsch <ubitux@gmail.com>
Thu, 3 Feb 2011 10:31:41 +0000 (11:31 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 4 Feb 2011 10:00:52 +0000 (10:00 +0000)
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavfilter/defaults.c
libavformat/avidec.c

index 98339b6..9f245c3 100644 (file)
@@ -126,7 +126,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per
     return ref;
 
 fail:
-    if (ref && ref->audio)
+    if (ref)
         av_free(ref->audio);
     av_free(ref);
     av_free(samples);
index d8d4726..27a9d1f 100644 (file)
@@ -1354,8 +1354,7 @@ static int avi_read_close(AVFormatContext *s)
         }
     }
 
-    if (avi->dv_demux)
-        av_free(avi->dv_demux);
+    av_free(avi->dv_demux);
 
     return 0;
 }