[FFmpeg-cvslog] avfilter/vf_thumbnail_cuda: Avoid mixing declaration and statements

Michael Niedermayer git at videolan.org
Sun Oct 1 04:09:23 EEST 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Fri Sep 29 02:28:44 2017 +0200| [d679f3d021787014f4e188f3694393f183061278] | committer: Michael Niedermayer

avfilter/vf_thumbnail_cuda: Avoid mixing declaration and statements

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

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

diff --git a/libavfilter/vf_thumbnail_cuda.c b/libavfilter/vf_thumbnail_cuda.c
index 4c08a85121..09377ca7f4 100644
--- a/libavfilter/vf_thumbnail_cuda.c
+++ b/libavfilter/vf_thumbnail_cuda.c
@@ -269,7 +269,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame)
     if (hw_frames_ctx->sw_format == AV_PIX_FMT_NV12 || hw_frames_ctx->sw_format == AV_PIX_FMT_YUV420P ||
         hw_frames_ctx->sw_format == AV_PIX_FMT_P010LE || hw_frames_ctx->sw_format == AV_PIX_FMT_P016LE)
     {
-        for (int i = 256; i < HIST_SIZE; i++)
+        int i;
+        for (i = 256; i < HIST_SIZE; i++)
             hist[i] = 4 * hist[i];
     }
 



More information about the ffmpeg-cvslog mailing list