aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Theisen <scott.the.elm@gmail.com>2024-12-14 17:00:23 -0500
committerMarth64 <marth64@proxyid.net>2025-02-09 20:28:11 -0600
commite838e6cbe2d8ab4ad9cea85e04e545ff27e97bdb (patch)
treeb069f5999590b3232926c811a95e0f815d04e8b1
parent9fb806fa57731690852dfb9ac2a0ae4ad5692fbf (diff)
downloadffmpeg-e838e6cbe2d8ab4ad9cea85e04e545ff27e97bdb.tar.gz
avformat/mpeg: demux ivtv captions
The packets start 'IVT0' or 'ivt0' ('I' = 0x49, 'i' = 0x69). Signed-off-by: Marth64 <marth64@proxyid.net>
-rw-r--r--libavformat/mpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index 2c766a4ee9..4d732aaf86 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -620,6 +620,9 @@ redo:
} else if (startcode >= 0xfd55 && startcode <= 0xfd5f) {
type = AVMEDIA_TYPE_VIDEO;
codec_id = AV_CODEC_ID_VC1;
+ } else if (startcode == 0x69 || startcode == 0x49) {
+ type = AVMEDIA_TYPE_SUBTITLE;
+ codec_id = AV_CODEC_ID_IVTV_VBI;
} else {
skip:
/* skip packet */