[FFmpeg-cvslog] lavc/huffyuvenc: Move a variable declaration up.
Carl Eugen Hoyos
git at videolan.org
Sun Dec 10 21:49:02 EET 2017
ffmpeg | branch: master | Carl Eugen Hoyos <ceffmpeg at gmail.com> | Sun Dec 10 20:46:55 2017 +0100| [514cf22a0d3abb5126d24b44f4291394e8ef8e39] | committer: 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
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=514cf22a0d3abb5126d24b44f4291394e8ef8e39
---
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];
More information about the ffmpeg-cvslog
mailing list