[FFmpeg-cvslog] cavs: fix "warning: initialization discards const qualifier from pointer target type"

Michael Niedermayer git at videolan.org
Tue Apr 2 05:23:35 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Apr  2 05:12:10 2013 +0200| [4dd31f88f513751b13c5090e541a127034a983bb] | committer: Michael Niedermayer

cavs: fix "warning: initialization discards const qualifier from pointer target type"

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavcodec/cavs.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cavs.c b/libavcodec/cavs.c
index dffd6cc..12af0c9 100644
--- a/libavcodec/cavs.c
+++ b/libavcodec/cavs.c
@@ -276,7 +276,7 @@ static void intra_pred_plane(uint8_t *d,uint8_t *top,uint8_t *left,int stride)
     int x, y, ia;
     int ih = 0;
     int iv = 0;
-    uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
+    const uint8_t *cm = ff_cropTbl + MAX_NEG_CROP;
 
     for (x = 0; x < 4; x++) {
         ih += (x + 1) * (top [5 + x] - top [3 - x]);



More information about the ffmpeg-cvslog mailing list