diff options
author | Zhao Zhili <zhilizhao@tencent.com> | 2023-08-18 22:24:08 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2023-08-26 16:31:43 +0800 |
commit | 2387328fa2044e49f635dc2bcafe49c28e02e762 (patch) | |
tree | 8ec2bf81b14fbccd7f1cbe4c90641c40143d208d | |
parent | 7cca9c07cad6216ea649560621da4afbe94e1ca1 (diff) | |
download | ffmpeg-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.c | 3 |
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; |