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

Måns Rullgård mru
Wed Apr 13 13:35:00 CEST 2005


matthieu castet <castet.matthieu at free.fr> writes:

> Hi,
>
>> -        av_malloc(sizeof (*ost) + ogg->nstreams * sizeof (*ogg->streams));
>> +        av_malloc(sizeof (*ost) + (ogg->nstreams-1) * sizeof (*ogg->streams));

[...]

>> -    ogg_stream_t streams[];
>> +    ogg_stream_t streams[1];
>
> ogg_stream_t streams[0] is done for that...

Yes, but it's not standard C.  Unspecified size is standard C99, and
apparently that wasn't supported.  I'm not going away from the
standard to make something work, if it can be done in a conforming
way.

-- 
M?ns Rullg?rd
mru at inprovide.com





More information about the ffmpeg-cvslog mailing list