lavfi/gradfun: avoid use of uninitialized variable.

pull/8/head
Clément Bœsch 12 years ago
parent 77693c541a
commit a3554bb457
  1. 2
      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;

Loading…
Cancel
Save