dvdec: drop const qualifier from variable to eliminate a warning
authorDiego Biurrun <diego@biurrun.de>
Mon, 16 Apr 2012 09:38:02 +0000 (11:38 +0200)
committerDiego Biurrun <diego@biurrun.de>
Sun, 6 May 2012 16:01:30 +0000 (18:01 +0200)
libavcodec/dvdec.c:344:12: warning: assignment discards â€˜const’ qualifier from pointer target type

libavcodec/dvdec.c

index ffa9c6d..8a21267 100644 (file)
@@ -313,7 +313,7 @@ static int dvvideo_decode_frame(AVCodecContext *avctx,
                                  void *data, int *data_size,
                                  AVPacket *avpkt)
 {
-    const uint8_t *buf = avpkt->data;
+    uint8_t *buf = avpkt->data;
     int buf_size = avpkt->size;
     DVVideoContext *s = avctx->priv_data;
     const uint8_t* vsc_pack;