From 514cf22a0d3abb5126d24b44f4291394e8ef8e39 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos Date: Sun, 10 Dec 2017 20:46:55 +0100 Subject: [PATCH] lavc/huffyuvenc: Move a variable declaration up. Fixes a warning with gcc-6.3: libavcodec/huffyuvenc.c:93:5: warning: ISO C90 forbids mixed declarations and code --- libavcodec/huffyuvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index aa71d20fcc..8be752844b 100644 --- a/libavcodec/huffyuvenc.c +++ b/libavcodec/huffyuvenc.c @@ -86,11 +86,11 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst, { int i; int r, g, b, a; + int min_width = FFMIN(w, 8); r = *red; g = *green; b = *blue; a = *alpha; - int min_width = FFMIN(w, 8); for (i = 0; i < min_width; i++) { const int rt = src[i * 4 + R];