]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/oggdec.h
allows adding chapters with NULL title
[ffmpeg] / libavformat / oggdec.h
index da79c0a6e8fe7788dcc206d782a84ec2dd318e22..4e88d0e3931659bcdb0de676164adfe12b15e5b7 100644 (file)
@@ -28,9 +28,9 @@
 #include "avformat.h"
 
 typedef struct ogg_codec {
-    int8_t *magic;
+    const int8_t *magic;
     uint8_t magicsize;
-    int8_t *name;
+    const int8_t *name;
     int (*header)(AVFormatContext *, int);
     int (*packet)(AVFormatContext *, int);
     uint64_t (*gptopts)(AVFormatContext *, int, uint64_t);
@@ -42,6 +42,7 @@ typedef struct ogg_stream {
     unsigned int bufpos;
     unsigned int pstart;
     unsigned int psize;
+    unsigned int pflags;
     uint32_t serial;
     uint32_t seq;
     uint64_t granule, lastgp;
@@ -74,13 +75,15 @@ typedef struct ogg {
 #define OGG_FLAG_BOS  2
 #define OGG_FLAG_EOS  4
 
-extern ogg_codec_t vorbis_codec;
-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 ogm_text_codec;
+extern ogg_codec_t ogm_video_codec;
+extern ogg_codec_t old_flac_codec;
+extern ogg_codec_t speex_codec;
+extern ogg_codec_t theora_codec;
+extern ogg_codec_t vorbis_codec;
 
 extern int vorbis_comment(AVFormatContext *ms, uint8_t *buf, int size);