[vlc-commits] mux: mp4: fix mp3 atom codec with quicktime

Francois Cartegnie git at videolan.org
Tue Feb 26 19:45:40 CET 2019


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb  8 16:47:10 2019 +0100| [a66b69c1769a78f76114e8a731b3ffece08d19aa] | committer: Francois Cartegnie

mux: mp4: fix mp3 atom codec with quicktime

(cherry picked from commit cef7e0eaf9990dff6f5a6d96b848e162be591a95)

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

 modules/mux/mp4/libmp4mux.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/mux/mp4/libmp4mux.c b/modules/mux/mp4/libmp4mux.c
index 78cb1e3a31..ecf52ba7e9 100644
--- a/modules/mux/mp4/libmp4mux.c
+++ b/modules/mux/mp4/libmp4mux.c
@@ -857,7 +857,8 @@ static bo_t *GetSounBox(vlc_object_t *p_obj, mp4mux_trackinfo_t *p_track, bool b
     vlc_fourcc_t codec = p_track->fmt.i_codec;
     char fcc[4];
 
-    if (codec == VLC_CODEC_MPGA) {
+    if (codec == VLC_CODEC_MPGA ||
+        codec == VLC_CODEC_MP3) {
         if (b_mov) {
             b_descr = false;
             memcpy(fcc, ".mp3", 4);



More information about the vlc-commits mailing list