aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-08-18 22:24:08 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-08-26 16:31:43 +0800
commit2387328fa2044e49f635dc2bcafe49c28e02e762 (patch)
tree8ec2bf81b14fbccd7f1cbe4c90641c40143d208d
parent7cca9c07cad6216ea649560621da4afbe94e1ca1 (diff)
downloadffmpeg-2387328fa2044e49f635dc2bcafe49c28e02e762.tar.gz
avfilter/vf_transpose_vt: fix declaration-after-statement
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r--libavfilter/vf_transpose_vt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_transpose_vt.c b/libavfilter/vf_transpose_vt.c
index da59479a4b..a3b2b9be79 100644
--- a/libavfilter/vf_transpose_vt.c
+++ b/libavfilter/vf_transpose_vt.c
@@ -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;