aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-12-10 20:46:55 +0100
committerCarl Eugen Hoyos <ceffmpeg@gmail.com>2017-12-10 20:46:55 +0100
commit514cf22a0d3abb5126d24b44f4291394e8ef8e39 (patch)
treeea243252efffa2ab6e3d900254c92a74fb21610a /libavcodec
parenteaff5fcb7cde8d1614755269773d471d3a3d1bfc (diff)
downloadffmpeg-514cf22a0d3abb5126d24b44f4291394e8ef8e39.tar.gz
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
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/huffyuvenc.c2
1 files changed, 1 insertions, 1 deletions
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];