[FFmpeg-cvslog] vf_idet: remove some unnecessary statement and unused variable

Matthieu Bouron git at videolan.org
Wed Oct 10 16:49:41 CEST 2012


ffmpeg | branch: master | Matthieu Bouron <matthieu.bouron at smartjog.com> | Wed Oct 10 10:52:42 2012 +0200| [f94edfe484e9ff2f1f548d924e4ad44991d91bf2] | committer: Michael Niedermayer

vf_idet: remove some unnecessary statement and unused variable

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f94edfe484e9ff2f1f548d924e4ad44991d91bf2
---

 libavfilter/vf_idet.c |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 4d14241..9f68d2f 100644
--- a/libavfilter/vf_idet.c
+++ b/libavfilter/vf_idet.c
@@ -49,7 +49,6 @@ typedef struct {
     AVFilterBufferRef *cur;
     AVFilterBufferRef *next;
     AVFilterBufferRef *prev;
-    AVFilterBufferRef *out;
     int (*filter_line)(const uint8_t *prev, const uint8_t *cur, const uint8_t *next, int w);
 
     const AVPixFmtDescriptor *csp;
@@ -254,9 +253,9 @@ static av_cold void uninit(AVFilterContext *ctx)
            idet->poststat[UNDETERMINED]
     );
 
-    if (idet->prev) avfilter_unref_buffer(idet->prev);
-    if (idet->cur ) avfilter_unref_buffer(idet->cur );
-    if (idet->next) avfilter_unref_buffer(idet->next);
+    avfilter_unref_buffer(idet->prev);
+    avfilter_unref_buffer(idet->cur );
+    avfilter_unref_buffer(idet->next);
 }
 
 static int query_formats(AVFilterContext *ctx)



More information about the ffmpeg-cvslog mailing list