summaryrefslogtreecommitdiff
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorAurelien Jacobs <aurel@gnuage.org>2010-11-13 13:57:49 +0000
committerAurelien Jacobs <aurel@gnuage.org>2010-11-13 13:57:49 +0000
commitcb2c971d91ef166914a4982e941aa71ffd496610 (patch)
treec9be6025b40a978ff442d052a722e0b82e6862bb /libavcodec/avcodec.h
parent2722dd6ebf9d93ab097c303df1d789f6074121c8 (diff)
allow passing subtitles header between decoder and encoder
Originally committed as revision 25745 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r--libavcodec/avcodec.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index b85fd24ddf..c523cd6ced 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2757,6 +2757,17 @@ typedef struct AVCodecContext {
* - decoding: unused
*/
int slices;
+
+ /**
+ * Header containing style information for text subtitles.
+ * For SUBTITLE_ASS subtitle type, it should contain the whole ASS
+ * [Script Info] and [V4+ Styles] section, plus the [Events] line and
+ * the Format line following. It shouldn't include any Dialogue line.
+ * - encoding: Set/allocated/freed by user (before avcodec_open())
+ * - decoding: Set/allocated/freed by libavcodec (by avcodec_open())
+ */
+ uint8_t *subtitle_header;
+ int subtitle_header_size;
} AVCodecContext;
/**