avfilter/vf_transpose_vt: fix declaration-after-statement

Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
This commit is contained in:
Zhao Zhili 2023-08-18 22:24:08 +08:00
parent 7cca9c07ca
commit 2387328fa2
1 changed files with 2 additions and 1 deletions

View File

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