[FFmpeg-devel] [PATCH] Fix implicit cast warnings in libavformat/metadata.c

Eli Friedman eli.friedman
Sat Jun 26 20:40:15 CEST 2010


Patch attached; the explicit casts are a little ugly, but I don't
think there's a better solution here.

-Eli
-------------- next part --------------
Index: libavformat/metadata.c
===================================================================
--- libavformat/metadata.c	(revision 23802)
+++ libavformat/metadata.c	(working copy)
@@ -69,11 +69,11 @@
     }
     if(value){
         if(flags & AV_METADATA_DONT_STRDUP_KEY){
-            m->elems[m->count].key  = key;
+            m->elems[m->count].key  = (char*)key;
         }else
         m->elems[m->count].key  = av_strdup(key  );
         if(flags & AV_METADATA_DONT_STRDUP_VAL){
-            m->elems[m->count].value= value;
+            m->elems[m->count].value= (char*)value;
         }else
         m->elems[m->count].value= av_strdup(value);
         m->count++;



More information about the ffmpeg-devel mailing list