[FFmpeg-cvslog] avformat/mpeg: demux ivtv captions

Scott Theisen git at videolan.org
Mon Feb 10 04:29:41 EET 2025


ffmpeg | branch: master | Scott Theisen <scott.the.elm at gmail.com> | Sat Dec 14 17:00:23 2024 -0500| [e838e6cbe2d8ab4ad9cea85e04e545ff27e97bdb] | committer: Marth64

avformat/mpeg: demux ivtv captions

The packets start 'IVT0' or 'ivt0'
('I' = 0x49, 'i' = 0x69).

Signed-off-by: Marth64 <marth64 at proxyid.net>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e838e6cbe2d8ab4ad9cea85e04e545ff27e97bdb
---

 libavformat/mpeg.c | 3 +++
 1 file changed, 3 insertions(+)

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 */



More information about the ffmpeg-cvslog mailing list