mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-27 21:40:34 +00:00
pre-c99 compatibility
Originally committed as revision 4116 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a0a74ad9f0
commit
ad3aa87456
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user