diff options
author | Clément Bœsch <ubitux@gmail.com> | 2012-12-02 05:25:09 +0400 |
---|---|---|
committer | Clément Bœsch <ubitux@gmail.com> | 2012-12-02 05:42:07 +0400 |
commit | a3554bb45737d1c55daa9dfa516069b2fd157cd6 (patch) | |
tree | 1060d83e48503071b5847c00993d35eec235ca8e /libavfilter | |
parent | 77693c541a541661357a0edd5bbaae69c64b2039 (diff) |
lavfi/gradfun: avoid use of uninitialized variable.
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/vf_gradfun.c | 2 |
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; |