Browse Source

lavfi/gradfun: avoid use of uninitialized variable.

tags/n1.1
Clément Bœsch 13 years ago
parent
commit
a3554bb457
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/vf_gradfun.c

+ 1
- 1
libavfilter/vf_gradfun.c View File

@@ -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;


Loading…
Cancel
Save