avformat/rtpdec_asf: fix compiler warning about const qualifier being discarded
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Aug 2014 21:53:53 +0000 (23:53 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Aug 2014 21:53:53 +0000 (23:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rtpdec_asf.c

index 541b86f..8e19654 100644 (file)
@@ -188,7 +188,7 @@ static int asfrtp_parse_packet(AVFormatContext *s, PayloadContext *asf,
 
         av_freep(&asf->buf);
 
-        ffio_init_context(pb, buf, len, 0, NULL, NULL, NULL, NULL);
+        ffio_init_context(pb, (uint8_t *)buf, len, 0, NULL, NULL, NULL, NULL);
 
         while (avio_tell(pb) + 4 < len) {
             int start_off = avio_tell(pb);