Commit abd39df1 authored by mru's avatar mru

pre-c99 compatibility


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4116 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 00ea5b6c
...@@ -80,7 +80,7 @@ ogg_save (AVFormatContext * s) ...@@ -80,7 +80,7 @@ ogg_save (AVFormatContext * s)
{ {
ogg_t *ogg = s->priv_data; ogg_t *ogg = s->priv_data;
ogg_state_t *ost = 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; int i;
ost->pos = url_ftell (&s->pb);; ost->pos = url_ftell (&s->pb);;
ost->curidx = ogg->curidx; ost->curidx = ogg->curidx;
......
...@@ -55,7 +55,7 @@ typedef struct ogg_state { ...@@ -55,7 +55,7 @@ typedef struct ogg_state {
uint64_t pos; uint64_t pos;
int curidx; int curidx;
struct ogg_state *next; struct ogg_state *next;
ogg_stream_t streams[]; ogg_stream_t streams[1];
} ogg_state_t; } ogg_state_t;
typedef struct ogg { 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