Commit 3a8ae5e9 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: ts: add adts probing

parent 5f46e004
......@@ -171,6 +171,11 @@ void ProbePES( demux_t *p_demux, ts_pid_t *pid, const uint8_t *p_pesstart, size_
{
pid->probed.i_fourcc = VLC_CODEC_MPGA;
}
else if( p_data[0] == 0xFF && (p_data[1] & 0xF2) == 0xF0 )
{
pid->probed.i_fourcc = VLC_CODEC_MP4A; /* ADTS */
pid->probed.i_original_fourcc = VLC_FOURCC('A','D','T','S');
}
}
/* VIDEO STREAM */
else if( i_stream_id >= 0xE0 && i_stream_id <= 0xEF )
......@@ -309,6 +314,7 @@ void MissingPATPMTFixup( demux_t *p_demux )
continue;
es_format_Init(&esstreams[j].fmt, p_pid->probed.i_cat, p_pid->probed.i_fourcc);
esstreams[j].fmt.i_original_fourcc = p_pid->probed.i_original_fourcc;
if( VLC_SUCCESS !=
FillPMTESParams(mux_standard, &esstreams[j].fmt, &esstreams[j].ts, &esstreams[j].pes ) )
......
......@@ -74,6 +74,7 @@ struct ts_pid_t
struct
{
vlc_fourcc_t i_fourcc;
vlc_fourcc_t i_original_fourcc;
int i_cat;
int i_pcr_count;
uint8_t i_stream_id;
......
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