Mercurial > libavformat.hg
diff avformat.h @ 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 | 610dce2b600a |
children | ecc817a37849 |
line wrap: on
line diff
--- a/avformat.h Mon Feb 02 21:32:11 2009 +0000 +++ b/avformat.h Mon Feb 02 21:45:55 2009 +0000 @@ -89,10 +89,11 @@ /** * 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.