diff options
author | Måns Rullgård <mans@mansr.com> | 2008-11-06 01:50:56 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2008-11-06 01:50:56 +0000 |
commit | 77be08eeb199c8f3f78b3426e970decadbc1425c (patch) | |
tree | 073686d98fcc367d45b8285adc4bd4d24125b703 /libavformat/oggparsevorbis.c | |
parent | d00e8b83f10cfa0d7e7b1d89a03f092f019322c3 (diff) | |
download | ffmpeg-77be08eeb199c8f3f78b3426e970decadbc1425c.tar.gz |
OGG: untypedef demuxer structs
Originally committed as revision 15784 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/oggparsevorbis.c')
-rw-r--r-- | libavformat/oggparsevorbis.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libavformat/oggparsevorbis.c b/libavformat/oggparsevorbis.c index 5c42475412..1f0bcfe89c 100644 --- a/libavformat/oggparsevorbis.c +++ b/libavformat/oggparsevorbis.c @@ -122,14 +122,14 @@ vorbis_comment(AVFormatContext * as, uint8_t *buf, int size) * [framing_flag] = read one bit | Not Used * */ -typedef struct { +struct oggvorbis_private { unsigned int len[3]; unsigned char *packet[3]; -} oggvorbis_private_t; +}; static unsigned int -fixup_vorbis_headers(AVFormatContext * as, oggvorbis_private_t *priv, +fixup_vorbis_headers(AVFormatContext * as, struct oggvorbis_private *priv, uint8_t **buf) { int i,offset, len; @@ -154,16 +154,16 @@ fixup_vorbis_headers(AVFormatContext * as, oggvorbis_private_t *priv, static int vorbis_header (AVFormatContext * s, int idx) { - ogg_t *ogg = s->priv_data; - ogg_stream_t *os = ogg->streams + idx; + struct ogg *ogg = s->priv_data; + struct ogg_stream *os = ogg->streams + idx; AVStream *st = s->streams[idx]; - oggvorbis_private_t *priv; + struct oggvorbis_private *priv; if (os->seq > 2) return 0; if (os->seq == 0) { - os->private = av_mallocz(sizeof(oggvorbis_private_t)); + os->private = av_mallocz(sizeof(struct oggvorbis_private)); if (!os->private) return 0; } @@ -219,7 +219,7 @@ vorbis_header (AVFormatContext * s, int idx) return os->seq < 3; } -const ogg_codec_t ff_vorbis_codec = { +const struct ogg_codec ff_vorbis_codec = { .magic = "\001vorbis", .magicsize = 7, .header = vorbis_header |