Browse Source

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
tags/n4.0
Carl Eugen Hoyos 8 years ago
parent
commit
514cf22a0d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/huffyuvenc.c

+ 1
- 1
libavcodec/huffyuvenc.c View File

@@ -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];


Loading…
Cancel
Save