Commit 66c458f4 authored by François Cartegnie's avatar François Cartegnie 🤞

demux: mp4: workaround broken AC3 mapping

parent 9d230bfe
......@@ -1006,6 +1006,7 @@ int SetupAudioES( demux_t *p_demux, mp4_track_t *p_track, MP4_Box_t *p_sample )
}
break;
}
case( ATOM_AC3 ):
case( ATOM_ac3 ):
{
p_track->fmt.i_codec = VLC_CODEC_A52;
......
......@@ -4863,6 +4863,7 @@ static const struct
{ ATOM_soun, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_agsm, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_ac3, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_AC3, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_eac3, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_fLaC, MP4_ReadBox_sample_soun, ATOM_stsd },
{ ATOM_lpcm, MP4_ReadBox_sample_soun, ATOM_stsd },
......
......@@ -187,6 +187,7 @@ typedef int64_t stime_t;
#define ATOM_OggS VLC_FOURCC( 'O', 'g', 'g', 'S' )
#define ATOM_agsm VLC_FOURCC( 'a', 'g', 's', 'm' )
#define ATOM_alac VLC_FOURCC( 'a', 'l', 'a', 'c' )
#define ATOM_AC3 VLC_FOURCC( 'A', 'C', '-', '3' )
#define ATOM_ac3 VLC_FOURCC( 'a', 'c', '-', '3' )
#define ATOM_eac3 VLC_FOURCC( 'e', 'c', '-', '3' )
#define ATOM_dac3 VLC_FOURCC( 'd', 'a', 'c', '3' )
......
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