[FFmpeg-devel] [PATCH 13/15] aviobuf: Fix warning about discarded qualifier

jamal jamrial at gmail.com
Fri Jul 27 10:23:23 CEST 2012


---
 libavformat/aviobuf.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c
index 05df001..f6a914a 100644
--- a/libavformat/aviobuf.c
+++ b/libavformat/aviobuf.c
@@ -122,7 +122,7 @@ AVIOContext *avio_alloc_context(
 static void writeout(AVIOContext *s, const uint8_t *data, int len)
 {
     if (s->write_packet && !s->error){
-        int ret= s->write_packet(s->opaque, data, len);
+        int ret= s->write_packet(s->opaque, (uint8_t *)data, len);
         if(ret < 0){
             s->error = ret;
         }
-- 
1.7.8.6



More information about the ffmpeg-devel mailing list