From e6516944a3d504f208911033b31afedb3d427267 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 27 Aug 2014 23:53:53 +0200 Subject: [PATCH] avformat/rtpdec_asf: fix compiler warning about const qualifier being discarded Signed-off-by: Michael Niedermayer --- libavformat/rtpdec_asf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/rtpdec_asf.c b/libavformat/rtpdec_asf.c index 541b86fe41..8e196545de 100644 --- a/libavformat/rtpdec_asf.c +++ b/libavformat/rtpdec_asf.c @@ -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);