[FFmpeg-cvslog] avfilter/vf_transpose_vt: fix declaration-after-statement

Zhao Zhili git at videolan.org
Sat Aug 26 11:52:33 EEST 2023


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Fri Aug 18 22:24:08 2023 +0800| [2387328fa2044e49f635dc2bcafe49c28e02e762] | committer: Zhao Zhili

avfilter/vf_transpose_vt: fix declaration-after-statement

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2387328fa2044e49f635dc2bcafe49c28e02e762
---

 libavfilter/vf_transpose_vt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list