[FFmpeg-cvslog] avfilter/video: fix shadowed variable

Zhao Zhili git at videolan.org
Tue Mar 22 19:57:39 EET 2022


ffmpeg | branch: master | Zhao Zhili <quinkblack at foxmail.com> | Thu Mar 10 14:53:38 2022 +0800| [303ddab7eaf88a1dca6c3d1b1b89afa6d9905a7e] | committer: Anton Khirnov

avfilter/video: fix shadowed variable

Signed-off-by: Anton Khirnov <anton at khirnov.net>

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

 libavfilter/video.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/video.c b/libavfilter/video.c
index fa3d588044..b2f0cdf88a 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -50,7 +50,7 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
     if (link->hw_frames_ctx &&
         ((AVHWFramesContext*)link->hw_frames_ctx->data)->format == link->format) {
         int ret;
-        AVFrame *frame = av_frame_alloc();
+        frame = av_frame_alloc();
 
         if (!frame)
             return NULL;



More information about the ffmpeg-cvslog mailing list