aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-12-02 02:25:09 +0100
committerClément Bœsch <ubitux@gmail.com>2012-12-02 02:42:07 +0100
commita3554bb45737d1c55daa9dfa516069b2fd157cd6 (patch)
tree1060d83e48503071b5847c00993d35eec235ca8e
parent77693c541a541661357a0edd5bbaae69c64b2039 (diff)
downloadffmpeg-a3554bb45737d1c55daa9dfa516069b2fd157cd6.tar.gz
lavfi/gradfun: avoid use of uninitialized variable.
-rw-r--r--libavfilter/vf_gradfun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_gradfun.c b/libavfilter/vf_gradfun.c
index 265d3ee90d..260a44b6e5 100644
--- a/libavfilter/vf_gradfun.c
+++ b/libavfilter/vf_gradfun.c
@@ -187,7 +187,7 @@ static int filter_frame(AVFilterLink *inlink, AVFilterBufferRef *in)
GradFunContext *gf = inlink->dst->priv;
AVFilterLink *outlink = inlink->dst->outputs[0];
AVFilterBufferRef *out;
- int p, direct;
+ int p, direct = 0;
if ((in->perms & AV_PERM_WRITE) && !(in->perms & AV_PERM_PRESERVE)) {
direct = 1;