]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/msrle.c
fix aliasing warnings. simpler too.
[ffmpeg] / libavcodec / msrle.c
index 5cb206170b1f60d6cebb003481922dc8ab198840..51893cbb7bb332a69db5cef007a567a3f0da27f8 100644 (file)
@@ -36,7 +36,6 @@
 #include <string.h>
 #include <unistd.h>
 
-#include "common.h"
 #include "avcodec.h"
 #include "dsputil.h"
 
@@ -44,7 +43,7 @@ typedef struct MsrleContext {
     AVCodecContext *avctx;
     AVFrame frame;
 
-    unsigned char *buf;
+    const unsigned char *buf;
     int size;
 
 } MsrleContext;
@@ -251,7 +250,7 @@ static int msrle_decode_init(AVCodecContext *avctx)
 
 static int msrle_decode_frame(AVCodecContext *avctx,
                               void *data, int *data_size,
-                              uint8_t *buf, int buf_size)
+                              const uint8_t *buf, int buf_size)
 {
     MsrleContext *s = avctx->priv_data;