Browse Source

avfilter/vf_thumbnail_cuda: Avoid mixing declaration and statements

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.4
Michael Niedermayer 8 years ago
parent
commit
d679f3d021
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavfilter/vf_thumbnail_cuda.c

+ 2
- 1
libavfilter/vf_thumbnail_cuda.c View 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];
}



Loading…
Cancel
Save