diff avidec.c @ 4353:e4a1b568b313 libavformat

modify the way to pass parameters to av_metadata_set() This improves code readability and this avoid warnings about discarding qualifiers from pointer target type.
author aurel
date Mon, 02 Feb 2009 21:45:55 +0000
parents 964903243e66
children 1d9ace1dec78
line wrap: on
line diff
--- a/avidec.c	Mon Feb 02 21:32:11 2009 +0000
+++ b/avidec.c	Mon Feb 02 21:45:55 2009 +0000
@@ -229,7 +229,7 @@
     get_strz(pb, value, sizeof(value));
     url_fseek(pb, i+size, SEEK_SET);
 
-    return av_metadata_set(&s->metadata, (const AVMetadataTag){key, value});
+    return av_metadata_set(&s->metadata, key, value);
 }
 
 static int avi_read_header(AVFormatContext *s, AVFormatParameters *ap)