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/avidec.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/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index 693bdc2053..5f02ad9943 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -229,7 +229,7 @@ static int avi_read_tag(AVFormatContext *s, const char *key, unsigned int size) 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) |