[FFmpeg-devel] [PATCH] Per-frame metadata

Michael Niedermayer michaelni at gmx.at
Thu Jun 16 20:02:55 CEST 2011


On Fri, Jun 10, 2011 at 08:47:51PM +0200, Nicolas George wrote:
[...]
> @@ -42,6 +42,134 @@ static const uint8_t png_pass_dsp_mask[NB_PASSES] = {
>      0xff, 0x0f, 0xff, 0x33, 0xff, 0x55, 0xff
>  };
>  
> +/*
> + * PNG tEXt and zTXt chunks are in ISO-8859-1.
> + */
> +
> +/**
> + * Converts text from ISO-8859-1 to UTF-8.
> + * @param in        input text in ISO-8859-1.
> + * @param size      size of the input text.
> + * @param size_out  if not NULL, will be set to the size of the output.
> + * @return  newly allocated buffer with the converted text, NUL-terminated;
> +            NULL if the buffer could not be allocated.
> + */
> +static uint8_t *ff_iso88591_to_utf8(const uint8_t *in, size_t size,
> +                                    size_t *size_out)

see PUT_UTF8()

about realloc_f()
iam fine with adding that though its a bit concerining how many
*alloc* functions we already have



[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110616/90e89929/attachment.asc>


More information about the ffmpeg-devel mailing list