avfilter/vf_thumbnail_cuda: Avoid mixing declaration and statements
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 29 Sep 2017 00:28:44 +0000 (02:28 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 1 Oct 2017 00:36:00 +0000 (02:36 +0200)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavfilter/vf_thumbnail_cuda.c

index 4c08a85..09377ca 100644 (file)
@@ -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];
     }