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
This commit is contained in:
Aurelien Jacobs
2009-02-02 21:45:55 +00:00
parent 69b6d53beb
commit 5ea7ce8843
4 changed files with 11 additions and 10 deletions

View File

@@ -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.