]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/sunrast.c
avfilter/af_firequalizer: add av_restrict on convolution func
[ffmpeg] / libavcodec / sunrast.c
index 25e11f6cd21f99aec459c230594893a850261605..0af5626e35182c348eb4ff57965d48ab0a2852c3 100644 (file)
@@ -168,7 +168,7 @@ static int sunrast_decode_frame(AVCodecContext *avctx, void *data,
         }
     } else {
         for (y = 0; y < h; y++) {
-            if (buf_end - buf < len)
+            if (buf_end - buf < alen)
                 break;
             memcpy(ptr, buf, len);
             ptr += stride;