libvorbisdec: fix const nitpick warning
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 16:01:14 +0000 (18:01 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 30 Aug 2012 16:01:14 +0000 (18:01 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/libvorbisdec.c

index e86c668..93c65b8 100644 (file)
@@ -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];
         }