1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

pre-c99 compatibility

Originally committed as revision 4116 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Måns Rullgård 2005-04-09 23:27:48 +00:00
parent a0a74ad9f0
commit ad3aa87456
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ ogg_save (AVFormatContext * s)
{
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;

View File

@ -55,7 +55,7 @@ typedef struct ogg_state {
uint64_t pos;
int curidx;
struct ogg_state *next;
ogg_stream_t streams[];
ogg_stream_t streams[1];
} ogg_state_t;
typedef struct ogg {