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/avformat.h | |
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/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 80d7809730..d7c457b905 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -89,10 +89,11 @@ av_metadata_get(AVMetadata *m, const char *key, const AVMetadataTag *prev, int f /** * sets the given tag in m, overwriting an existing tag. - * @param tag tag to add to m, key and value will be av_strduped. + * @param key tag key to add to m (will be av_strduped). + * @param value tag value to add to m (will be av_strduped). * @return >= 0 if success otherwise error code that is <0. */ -int av_metadata_set(AVMetadata **m, AVMetadataTag tag); +int av_metadata_set(AVMetadata **pm, const char *key, const char *value); /** * Free all the memory allocated for an AVMetadata struct. |