diff options
author | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-12-10 20:46:55 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <ceffmpeg@gmail.com> | 2017-12-10 20:46:55 +0100 |
commit | 514cf22a0d3abb5126d24b44f4291394e8ef8e39 (patch) | |
tree | ea243252efffa2ab6e3d900254c92a74fb21610a /libavcodec | |
parent | eaff5fcb7cde8d1614755269773d471d3a3d1bfc (diff) | |
download | ffmpeg-streaming-514cf22a0d3abb5126d24b44f4291394e8ef8e39.zip ffmpeg-streaming-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/huffyuvenc.c b/libavcodec/huffyuvenc.c index aa71d20..8be7528 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]; |