mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 15:22:09 +00:00
demux_mkv: support Blu-ray subtitles
Recognize "S_HDMV/PGS" CodecID.
This commit is contained in:
parent
9d4d5b4469
commit
a8b93d4c81
@ -613,6 +613,8 @@ static void parse_trackentry(struct demuxer *demuxer,
|
||||
else if (!strcmp(track->codec_id, MKV_S_TEXTASCII)
|
||||
|| !strcmp(track->codec_id, MKV_S_TEXTUTF8))
|
||||
track->subtitle_type = 't';
|
||||
else if (!strcmp(track->codec_id, MKV_S_PGS))
|
||||
track->subtitle_type = 'p';
|
||||
mp_msg(MSGT_DEMUX, MSGL_V, "[mkv] | + Codec ID: %s\n",
|
||||
track->codec_id);
|
||||
} else
|
||||
|
@ -78,6 +78,7 @@
|
||||
#define MKV_S_TEXTSSA "S_TEXT/SSA"
|
||||
#define MKV_S_TEXTASS "S_TEXT/ASS"
|
||||
#define MKV_S_VOBSUB "S_VOBSUB"
|
||||
#define MKV_S_PGS "S_HDMV/PGS"
|
||||
#define MKV_S_SSA "S_SSA" // Deprecated
|
||||
#define MKV_S_ASS "S_ASS" // Deprecated
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user