Commit 7d9bbcd7 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: split quicktime text codecs

too much confusion and incompatible sample desc
parent c42cd33a
......@@ -530,6 +530,7 @@
#define VLC_CODEC_USF VLC_FOURCC('u','s','f',' ')
#define VLC_CODEC_OGT VLC_FOURCC('o','g','t',' ')
#define VLC_CODEC_CVD VLC_FOURCC('c','v','d',' ')
#define VLC_CODEC_QTXT VLC_FOURCC('q','t','x','t')
#define VLC_CODEC_TX3G VLC_FOURCC('t','x','3','g')
#define VLC_CODEC_ARIB_A VLC_FOURCC('a','r','b','a')
#define VLC_CODEC_ARIB_C VLC_FOURCC('a','r','b','c')
......
......@@ -1272,7 +1272,10 @@ int SetupSpuES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
if(!p_text)
return 0;
p_track->fmt.i_codec = VLC_CODEC_TX3G;
if( p_sample->i_type == VLC_FOURCC( 't', 'e', 'x', 't' ) )
p_track->fmt.i_codec = VLC_CODEC_QTXT;
else
p_track->fmt.i_codec = VLC_CODEC_TX3G;
if( GetDWBE(p_text->p_data) & 0xC0000000 )
{
......
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