diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-02 21:45:55 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2009-02-02 21:45:55 +0000 |
commit | 5ea7ce884303ee95f7c47e658951cf5e19e24df6 (patch) | |
tree | cc250922dfd50959179dadd22c8b088cf1be5b38 /libavformat/metadata_compat.c | |
parent | 69b6d53bebbdb25f424b87123eef60de24693cf2 (diff) | |
download | ffmpeg-5ea7ce884303ee95f7c47e658951cf5e19e24df6.tar.gz |
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.
Originally committed as revision 16952 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/metadata_compat.c')
-rw-r--r-- | libavformat/metadata_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/metadata_compat.c b/libavformat/metadata_compat.c index 6cde8307e8..ef4bdb5db1 100644 --- a/libavformat/metadata_compat.c +++ b/libavformat/metadata_compat.c @@ -106,7 +106,7 @@ void ff_metadata_demux_compat(AVFormatContext *ctx) #define FILL_METADATA(s, key, value) { \ if (value && *value && !av_metadata_get(s->metadata, #key, NULL, 0)) \ - av_metadata_set(&s->metadata, (const AVMetadataTag){#key, value}); \ + av_metadata_set(&s->metadata, #key, value); \ } #define FILL_METADATA_STR(s, key) FILL_METADATA(s, key, s->key) #define FILL_METADATA_INT(s, key) { \ |