[vlc-commits] demux: mp4: workaround broken AC3 mapping

Francois Cartegnie git at videolan.org
Mon Jun 18 11:39:35 CEST 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Sun Jun 17 19:20:11 2018 +0200| [66c458f463b87e2ea99260b2984187ad64718fde] | committer: Francois Cartegnie

demux: mp4: workaround broken AC3 mapping

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=66c458f463b87e2ea99260b2984187ad64718fde
---

 modules/demux/mp4/essetup.c | 1 +
 modules/demux/mp4/libmp4.c  | 1 +
 modules/demux/mp4/libmp4.h  | 1 +
 3 files changed, 3 insertions(+)

diff --git a/modules/demux/mp4/essetup.c b/modules/demux/mp4/essetup.c
index 4401f80d02..1181119069 100644
--- a/modules/demux/mp4/essetup.c
+++ b/modules/demux/mp4/essetup.c
@@ -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;
diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index ee7d4258f9..2ae02f7657 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -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 },
diff --git a/modules/demux/mp4/libmp4.h b/modules/demux/mp4/libmp4.h
index 24c9183f96..3f1e45a986 100644
--- a/modules/demux/mp4/libmp4.h
+++ b/modules/demux/mp4/libmp4.h
@@ -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' )



More information about the vlc-commits mailing list