[Ffmpeg-cvslog-old] Re: [Ffmpeg-cvslog] CVS: ffmpeg/libavformat ogg2.c, 1.1, 1.2 ogg2.h, 1.1, 1.2

matthieu castet castet.matthieu
Tue Apr 12 18:51:51 CEST 2005


Hi,

> Index: ogg2.c
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/ogg2.c,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -d -r1.1 -r1.2
> --- ogg2.c	9 Apr 2005 15:32:58 -0000	1.1
> +++ ogg2.c	9 Apr 2005 23:27:48 -0000	1.2
> @@ -80,7 +80,7 @@
>  {
>      ogg_t *ogg = s->priv_data;
>      ogg_state_t *ost =
> -        av_malloc(sizeof (*ost) + ogg->nstreams * sizeof (*ogg->streams));
> +        av_malloc(sizeof (*ost) + (ogg->nstreams-1) * sizeof (*ogg->streams));
>      int i;
>      ost->pos = url_ftell (&s->pb);;
>      ost->curidx = ogg->curidx;
> 
> Index: ogg2.h
> ===================================================================
> RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/ogg2.h,v
> retrieving revision 1.1
> retrieving revision 1.2
> diff -u -d -r1.1 -r1.2
> --- ogg2.h	9 Apr 2005 15:32:58 -0000	1.1
> +++ ogg2.h	9 Apr 2005 23:27:48 -0000	1.2
> @@ -55,7 +55,7 @@
>      uint64_t pos;
>      int curidx;
>      struct ogg_state *next;
> -    ogg_stream_t streams[];
> +    ogg_stream_t streams[1];
>  } ogg_state_t;
>  
>  typedef struct ogg {
> 

ogg_stream_t streams[0] is done for that...


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Ffmpeg-cvslog mailing list
Ffmpeg-cvslog at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ffmpeg-cvslog





More information about the ffmpeg-cvslog mailing list