lavfi/gradfun: avoid use of uninitialized variable.

This commit is contained in:
Clément Bœsch 2012-12-02 02:25:09 +01:00
parent 77693c541a
commit a3554bb457

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;