History

avformat/mpeg: demux ivtv captions

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

Scott Theisen committed 1 year ago

Commit e838e6c1 parent 9fb806f1 file · +3 −0Browse files

Unified · Split

libavformat/mpeg.c+3−0
@@ -620,6 +620,9 @@ redo: · 619 unmodified lines
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 */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t