#include "avformat.h"
typedef struct ogg_codec {
- uint8_t *magic;
+ int8_t *magic;
uint8_t magicsize;
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;
+ int nstreams;
ogg_stream_t streams[1];
} ogg_state_t;
#define OGG_FLAG_EOS 4
extern ogg_codec_t vorbis_codec;
-#if 0
+extern ogg_codec_t theora_codec;
+extern ogg_codec_t flac_codec;
+extern ogg_codec_t old_flac_codec;
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);
+extern int vorbis_comment(AVFormatContext *ms, uint8_t *buf, int size);
#endif