[FFmpeg-devel] [PATCH] Add av_metadata_set_int

Michael Niedermayer michaelni
Tue Nov 24 15:11:52 CET 2009


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

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20091124/4363e1a1/attachment.pgp>



More information about the ffmpeg-devel mailing list