avio: fix "discards const qualifier from pointer target type" warning
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 26 May 2012 18:04:19 +0000 (20:04 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 26 May 2012 18:46:02 +0000 (20:46 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/avio.c

index c7b7bc6..0e9bd2b 100644 (file)
@@ -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)