[FFmpeg-cvslog] r16966 - trunk/libavformat/aiff.c

Baptiste Coudurier baptiste.coudurier
Tue Feb 3 01:05:47 CET 2009


aurel wrote:
> Author: aurel
> Date: Tue Feb  3 00:43:12 2009
> New Revision: 16966
> 
> Log:
> use new metadata API in aiff demuxer
> 
> Modified:
>    trunk/libavformat/aiff.c
> 
> Modified: trunk/libavformat/aiff.c
> ==============================================================================
> --- trunk/libavformat/aiff.c	Tue Feb  3 00:37:03 2009	(r16965)
> +++ trunk/libavformat/aiff.c	Tue Feb  3 00:43:12 2009	(r16966)
> @@ -79,9 +79,10 @@ static int get_tag(ByteIOContext *pb, ui
>  }
>  
>  /* Metadata string read */
> -static void get_meta(ByteIOContext *pb, char * str, int strsize, int size)
> +static void get_meta(AVFormatContext *s, const char *key, int size)
>  {
> -    int res = get_buffer(pb, (uint8_t*)str, FFMIN(strsize-1, size));
> +    uint8_t str[1024];
> +    int res = get_buffer(s->pb, str, FFMIN(sizeof(str)-1, size));
>      if (res < 0)
>          return;

Does the new API have the 1024 limitation ? I hope not.

Therefore everything must be read and it's up the compat layer to
truncate it to 1024.

[...]

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
FFmpeg maintainer                                  http://www.ffmpeg.org




More information about the ffmpeg-cvslog mailing list