Commit 2387328f authored by Zhao Zhili's avatar Zhao Zhili

avfilter/vf_transpose_vt: fix declaration-after-statement

Signed-off-by: 's avatarZhao Zhili <zhilizhao@tencent.com>
parent 7cca9c07
......@@ -69,11 +69,12 @@ static int transpose_vt_filter_frame(AVFilterLink *link, AVFrame *in)
AVFilterLink *outlink = ctx->outputs[0];
CVPixelBufferRef src;
CVPixelBufferRef dst;
AVFrame *out;
if (s->passthrough)
return ff_filter_frame(outlink, in);
AVFrame *out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
out = ff_get_video_buffer(outlink, outlink->w, outlink->h);
if (!out) {
ret = AVERROR(ENOMEM);
goto fail;
......
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