int8_t *name;
int (*header)(AVFormatContext *, int);
int (*packet)(AVFormatContext *, int);
+ uint64_t (*gptopts)(AVFormatContext *, int, uint64_t);
} ogg_codec_t;
typedef struct ogg_stream {
int header;
int nsegs, segp;
uint8_t segments[255];
+ void *private;
} ogg_stream_t;
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 {
#define OGG_FLAG_EOS 4
extern ogg_codec_t vorbis_codec;
+extern ogg_codec_t theora_codec;
+extern ogg_codec_t flac_codec;
#if 0
extern ogg_codec_t ogm_video_codec;
extern ogg_codec_t ogm_audio_codec;
extern ogg_codec_t ogm_old_codec;
-extern ogg_codec_t flac_codec;
#endif
extern int vorbis_comment(AVFormatContext *ms, char *buf, int size);