aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_idet.c
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@smartjog.com>2012-10-10 10:52:42 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-10 16:48:58 +0200
commitf94edfe484e9ff2f1f548d924e4ad44991d91bf2 (patch)
tree09c4994d6b043265581c4be9eb1ef291454b6356 /libavfilter/vf_idet.c
parent03cc52a07d51526cb0269891ee3797d48fe20018 (diff)
downloadandroid_external_ffmpeg-f94edfe484e9ff2f1f548d924e4ad44991d91bf2.tar.gz
android_external_ffmpeg-f94edfe484e9ff2f1f548d924e4ad44991d91bf2.tar.bz2
android_external_ffmpeg-f94edfe484e9ff2f1f548d924e4ad44991d91bf2.zip
vf_idet: remove some unnecessary statement and unused variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavfilter/vf_idet.c')
-rw-r--r--libavfilter/vf_idet.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavfilter/vf_idet.c b/libavfilter/vf_idet.c
index 4d14241bb5..9f68d2f933 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)