Browse Source

pre-c99 compatibility

Originally committed as revision 4116 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Måns Rullgård 20 years ago
parent
commit
ad3aa87456
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      libavformat/ogg2.c
  2. +1
    -1
      libavformat/ogg2.h

+ 1
- 1
libavformat/ogg2.c 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;


+ 1
- 1
libavformat/ogg2.h 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 {


Loading…
Cancel
Save