]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/avcodec.h
lavc: Add data and linesize to AVSubtitleRect
[ffmpeg] / libavcodec / avcodec.h
index 5f1755a3eac0cf4eaa2fbe71b9ce3aa180ad20f8..42f90d5c70ee27cf35eccf5a9be9e1d92b2e87af 100644 (file)
@@ -3215,11 +3215,20 @@ typedef struct AVSubtitleRect {
     int h;         ///< height           of pict, undefined when pict is not set
     int nb_colors; ///< number of colors in pict, undefined when pict is not set
 
+#if FF_API_AVPICTURE
     /**
-     * data+linesize for the bitmap of this subtitle.
-     * can be set for text/ass as well once they where rendered
+     * @deprecated unused
      */
+    attribute_deprecated
     AVPicture pict;
+#endif
+    /**
+     * data+linesize for the bitmap of this subtitle.
+     * Can be set for text/ass as well once they are rendered.
+     */
+    uint8_t *data[4];
+    int linesize[4];
+
     enum AVSubtitleType type;
 
     char *text;                     ///< 0 terminated plain UTF-8 text