[vlc-commits] [Git][videolan/vlc][master] demux: mkv: add support for ARIB subs
Steve Lhomme (@robUx4)
gitlab at videolan.org
Fri Nov 27 13:29:00 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
88e51950 by Vipin Karthic at 2026-11-27T12:52:16+00:00
demux: mkv: add support for ARIB subs
- - - - -
1 changed file:
- modules/demux/mkv/matroska_segment_parse.cpp
Changes:
=====================================
modules/demux/mkv/matroska_segment_parse.cpp
=====================================
@@ -2426,6 +2426,31 @@ bool matroska_segment_c::TrackInit( mkv_track_t * p_tk )
vars.p_fmt->subs.dvb.i_id = ( ancillary_id << 16 ) | page_id;
}
+ S_CASE("S_ARIBSUB") {
+ ONLY_FMT(SPU);
+
+ if( vars.p_tk->i_extra_data < 3 ) {
+ throw std::runtime_error( "not enough codec data for S_ARIBSUB");
+ }
+
+ const uint8_t component_tag = vars.p_tk->p_extra_data[0];
+ const uint16_t data_component_id = GetWBE(&vars.p_tk->p_extra_data[1]);
+
+ if( data_component_id == 0x0008 && (component_tag >= 0x30 && component_tag <= 0x37) )
+ {
+ vars.p_fmt->i_codec = VLC_CODEC_ARIB_A;
+ }
+ else if( data_component_id == 0x0012 && (component_tag == 0x87 || component_tag == 0x88) )
+ {
+ vars.p_fmt->i_codec = VLC_CODEC_ARIB_C;
+ }
+ else
+ {
+ msg_Err(vars.p_demuxer, "unknown ARIB profile= tag: `%x`, id: `%x`",
+ component_tag, data_component_id);
+ vars.p_fmt->i_codec = VLC_CODEC_UNKNOWN;
+ }
+ }
S_CASE("S_HDMV/PGS") {
vars.p_fmt->i_codec = VLC_CODEC_BD_PG;
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/88e51950bf0e8b85f7fb69654d3fd30832def905
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/88e51950bf0e8b85f7fb69654d3fd30832def905
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list