[FFmpeg-cvslog] avformat/rdt: fix compiler warning about const qualifier being discarded

Michael Niedermayer git at videolan.org
Thu Aug 28 00:08:04 CEST 2014


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Aug 27 23:52:40 2014 +0200| [35debfc366cd3d131e19852b3c1ac21d077dca17] | committer: Michael Niedermayer

avformat/rdt: fix compiler warning about const qualifier being discarded

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

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

 libavformat/rdt.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rdt.c b/libavformat/rdt.c
index 37fcd76..e8dc8f5 100644
--- a/libavformat/rdt.c
+++ b/libavformat/rdt.c
@@ -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);



More information about the ffmpeg-cvslog mailing list