Commit ad3aa874 authored by Måns Rullgård's avatar Måns Rullgård

pre-c99 compatibility

Originally committed as revision 4116 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent a0a74ad9
......@@ -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;
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment