[FFmpeg-cvslog] avio: fix "discards const qualifier from pointer target type" warning

Michael Niedermayer git at videolan.org
Sat May 26 20:49:03 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat May 26 20:04:19 2012 +0200| [f7c89705e4372d3c5791ca78b76317ce9c0b6785] | committer: Michael Niedermayer

avio: fix "discards const qualifier from pointer target type" warning

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

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

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

diff --git a/libavformat/avio.c b/libavformat/avio.c
index c7b7bc6..0e9bd2b 100644
--- a/libavformat/avio.c
+++ b/libavformat/avio.c
@@ -302,7 +302,7 @@ int ffurl_write(URLContext *h, const unsigned char *buf, int size)
     if (h->max_packet_size && size > h->max_packet_size)
         return AVERROR(EIO);
 
-    return retry_transfer_wrapper(h, buf, size, size, (void*)h->prot->url_write);
+    return retry_transfer_wrapper(h, (unsigned char *)buf, size, size, (void*)h->prot->url_write);
 }
 
 int64_t ffurl_seek(URLContext *h, int64_t pos, int whence)



More information about the ffmpeg-cvslog mailing list