[FFmpeg-cvslog] dvdec: drop const qualifier from variable to eliminate a warning

Diego Biurrun git at videolan.org
Sun May 6 22:19:01 CEST 2012


ffmpeg | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Apr 16 11:38:02 2012 +0200| [b2e92e946c0b94e3e55a2ef45453940cf14ab619] | committer: Diego Biurrun

dvdec: drop const qualifier from variable to eliminate a warning

libavcodec/dvdec.c:344:12: warning: assignment discards ‘const’ qualifier from pointer target type

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b2e92e946c0b94e3e55a2ef45453940cf14ab619
---

 libavcodec/dvdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavcodec/dvdec.c b/libavcodec/dvdec.c
index ffa9c6d..8a21267 100644
--- a/libavcodec/dvdec.c
+++ b/libavcodec/dvdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list