]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/aasc.c
fix possible overflow with memmove
[ffmpeg] / libavcodec / aasc.c
index f720f3eddb4091290d93e474e17481b26d7c8a32..62912a81ae7bf8502596027f79bacae35cb32d2a 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "common.h"
 #include "avcodec.h"
 #include "dsputil.h"
 
@@ -59,7 +58,7 @@ static int aasc_decode_init(AVCodecContext *avctx)
 
 static int aasc_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
     AascContext *s = avctx->priv_data;
     int stream_ptr = 4;