summaryrefslogtreecommitdiffstats
path: root/libavcodec/avcodec.h
diff options
context:
space:
mode:
authorClément Bœsch <ubitux@gmail.com>2012-10-24 23:58:15 +0200
committerClément Bœsch <ubitux@gmail.com>2012-10-24 23:58:18 +0200
commit4d46fd0b3ed14cfcfc4fd7fc1e4fb29f8fcea65c (patch)
treee5d66c0058a822bd7039b75a5a51e0bc2da87548 /libavcodec/avcodec.h
parent60d9ee1b75b37e9d188cf7321d0d74d8714da696 (diff)
downloadffmpeg-streaming-4d46fd0b3ed14cfcfc4fd7fc1e4fb29f8fcea65c.zip
ffmpeg-streaming-4d46fd0b3ed14cfcfc4fd7fc1e4fb29f8fcea65c.tar.gz
lavc: add AV_PKT_DATA_SUBTITLE_POSITION side data type.
This commit introduces a new packet side data type for the subtitle position information. This is meant to be used by the SRT format where that information is stored along with the timing, which is not part of the subrip packets.
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 0374de4..1495c9e 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -948,6 +948,17 @@ enum AVPacketSideDataType {
* the list, so it is required to rely on the side data size to stop.
*/
AV_PKT_DATA_STRINGS_METADATA,
+
+ /**
+ * Subtitle event position
+ * @code
+ * u32le x1
+ * u32le y1
+ * u32le x2
+ * u32le y2
+ * @endcode
+ */
+ AV_PKT_DATA_SUBTITLE_POSITION,
};
typedef struct AVPacket {
OpenPOWER on IntegriCloud