Commit 514cf22a authored by Carl Eugen Hoyos's avatar Carl Eugen Hoyos

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
parent eaff5fcb
...@@ -86,11 +86,11 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst, ...@@ -86,11 +86,11 @@ static inline void sub_left_prediction_bgr32(HYuvContext *s, uint8_t *dst,
{ {
int i; int i;
int r, g, b, a; int r, g, b, a;
int min_width = FFMIN(w, 8);
r = *red; r = *red;
g = *green; g = *green;
b = *blue; b = *blue;
a = *alpha; a = *alpha;
int min_width = FFMIN(w, 8);
for (i = 0; i < min_width; i++) { for (i = 0; i < min_width; i++) {
const int rt = src[i * 4 + R]; const int rt = src[i * 4 + R];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment