Add type, text and ass to AVSubtitleRect.
authorMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Jan 2009 19:20:50 +0000 (19:20 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Sat, 3 Jan 2009 19:20:50 +0000 (19:20 +0000)
Originally committed as revision 16417 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/avcodec.h

index 04c1769..9c3e710 100644 (file)
@@ -2405,6 +2405,16 @@ typedef struct AVSubtitleRect {
      * can be set for text/ass as well once they where rendered
      */
     AVPicture pict;
+    enum AVSubtitleType type;
+
+    char *text;                     ///< 0 terminated plain UTF-8 text
+
+    /**
+     * 0 terminated ASS/SSA compatible event line.
+     * The pressentation of this is unaffected by the other values in this
+     * struct.
+     */
+    char *ass;
 } AVSubtitleRect;
 
 typedef struct AVSubtitle {