]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rdt: fix compiler warning about const qualifier being discarded
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Aug 2014 21:52:40 +0000 (23:52 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 27 Aug 2014 21:52:40 +0000 (23:52 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/rdt.c

index 37fcd7603c0eb5eb46e8ab0118e50ecea55161c0..e8dc8f5892f6316a53309f94f2c45a09ca1f9e76 100644 (file)
@@ -301,7 +301,7 @@ rdt_parse_packet (AVFormatContext *ctx, PayloadContext *rdt, AVStream *st,
     if (rdt->audio_pkt_cnt == 0) {
         int pos;
 
-        ffio_init_context(&pb, buf, len, 0, NULL, NULL, NULL, NULL);
+        ffio_init_context(&pb, (uint8_t *)buf, len, 0, NULL, NULL, NULL, NULL);
         flags = (flags & RTP_FLAG_KEY) ? 2 : 0;
         res = ff_rm_parse_packet (rdt->rmctx, &pb, st, rdt->rmst[st->index], len, pkt,
                                   &seq, flags, *timestamp);