Skip to content

Commit e838e6c

Browse files
ulmus-scottMarth64x
authored andcommitted
avformat/mpeg: demux ivtv captions
The packets start 'IVT0' or 'ivt0' ('I' = 0x49, 'i' = 0x69). Signed-off-by: Marth64 <[email protected]>
1 parent 9fb806f commit e838e6c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

libavformat/mpeg.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,9 @@ static int mpegps_read_packet(AVFormatContext *s,
620620
} else if (startcode >= 0xfd55 && startcode <= 0xfd5f) {
621621
type = AVMEDIA_TYPE_VIDEO;
622622
codec_id = AV_CODEC_ID_VC1;
623+
} else if (startcode == 0x69 || startcode == 0x49) {
624+
type = AVMEDIA_TYPE_SUBTITLE;
625+
codec_id = AV_CODEC_ID_IVTV_VBI;
623626
} else {
624627
skip:
625628
/* skip packet */

0 commit comments

Comments
 (0)