[FFmpeg-devel] [PATCH] Add av_metadata_set_int

Baptiste Coudurier baptiste.coudurier
Tue Nov 24 20:23:32 CET 2009


On 11/24/2009 06:11 AM, Michael Niedermayer wrote:
> On Mon, Nov 23, 2009 at 02:19:38PM -0500, David Conrad wrote:
>> Hi,
>>
>> As suggested by Baptiste, this just does an int ->  string conversion.
> [...]
>> diff --git a/libavformat/metadata.c b/libavformat/metadata.c
>> index c7d036f..f23f59d 100644
>> --- a/libavformat/metadata.c
>> +++ b/libavformat/metadata.c
>> @@ -78,6 +78,13 @@ int av_metadata_set(AVMetadata **pm, const char *key, const char *value)
>>       return 0;
>>   }
>>
>> +int av_metadata_set_int(AVMetadata **pm, const char *key, int value)
>
> id use int64_t or double as its more generic

You might not want to print the same value for double though.

-- 
Baptiste COUDURIER
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                                  http://www.ffmpeg.org



More information about the ffmpeg-devel mailing list