[FFmpeg-cvslog] libvorbisdec: fix const nitpick warning

Michael Niedermayer git at videolan.org
Thu Aug 30 18:04:41 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug 30 18:01:14 2012 +0200| [6fc892d271912e8ca0b0512e224575b192f5addf] | committer: Michael Niedermayer

libvorbisdec: fix const nitpick warning

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

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

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

diff --git a/libavcodec/libvorbisdec.c b/libavcodec/libvorbisdec.c
index e86c668..93c65b8 100644
--- a/libavcodec/libvorbisdec.c
+++ b/libavcodec/libvorbisdec.c
@@ -48,7 +48,7 @@ static int oggvorbis_decode_init(AVCodecContext *avccontext) {
 
     if(p[0] == 0 && p[1] == 30) {
         for(i = 0; i < 3; i++){
-            hsizes[i] = bytestream_get_be16(&p);
+            hsizes[i] = bytestream_get_be16((const uint8_t **)&p);
             headers[i] = p;
             p += hsizes[i];
         }



More information about the ffmpeg-cvslog mailing list