Commit 94f187d3 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_stereo3d: assert that out variable is valid

parent 34a12b99
......@@ -672,7 +672,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpicref)
AVFilterContext *ctx = inlink->dst;
Stereo3DContext *s = ctx->priv;
AVFilterLink *outlink = ctx->outputs[0];
AVFrame *out, *oleft, *oright, *ileft, *iright;
AVFrame *out = NULL, *oleft, *oright, *ileft, *iright;
int out_off_left[4], out_off_right[4];
int i, ret;
......@@ -1082,6 +1082,7 @@ copy:
av_frame_free(&s->prev);
av_frame_free(&inpicref);
}
av_assert0(out);
out->sample_aspect_ratio = s->aspect;
return ff_filter_frame(outlink, out);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment