]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/dpcm.c
fix possible overflow with memmove
[ffmpeg] / libavcodec / dpcm.c
index 53382d66356ca119fb4650ef1998aef81a15b85d..01dd5cce04ed298b90c51e82e4aceee3244f7e06 100644 (file)
@@ -159,7 +159,7 @@ static int dpcm_decode_init(AVCodecContext *avctx)
 
 static int dpcm_decode_frame(AVCodecContext *avctx,
                              void *data, int *data_size,
-                             uint8_t *buf, int buf_size)
+                             const uint8_t *buf, int buf_size)
 {
     DPCMContext *s = avctx->priv_data;
     int in, out = 0;