]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/huffyuvenc.c
avcodec/dvbsub_parser: Do not discard data
[ffmpeg] / libavcodec / huffyuvenc.c
index aa71d20fcce75a835f5e8206dcda59cc53142095..8be752844b0290bf377029b93672bd1e3fd0d140 100644 (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];