Commit 9e71a998 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: fix ttml / handlers regression

parent ed832e6b
......@@ -4705,6 +4705,7 @@ static int MP4_ReadBox_default( stream_t *p_stream, MP4_Box_t *p_box )
case ATOM_hint:
return MP4_ReadBox_sample_hint8( p_stream, p_box );
case ATOM_text:
case ATOM_subt:
case ATOM_tx3g:
case ATOM_sbtl:
return MP4_ReadBox_sample_text( p_stream, p_box );
......
......@@ -2965,7 +2965,9 @@ static int TrackCreateES( demux_t *p_demux, mp4_track_t *p_track,
break;
case SPU_ES:
if ( p_sample->i_handler != ATOM_text ||
if ( ( p_sample->i_handler != ATOM_text &&
p_sample->i_handler != ATOM_subt &&
p_sample->i_handler != ATOM_sbtl ) ||
!SetupSpuES( p_demux, p_track, p_sample ) )
return VLC_EGENERIC;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment