[vlc-commits] [Git][videolan/vlc][master] mux: mp4: set real number of channels for ISOBMFF
    Steve Lhomme (@robUx4) 
    gitlab at videolan.org
       
    Fri Jul 19 09:50:25 UTC 2024
    
    
  
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
5ebffbaa by François Cartegnie at 2024-07-19T09:17:13+00:00
mux: mp4: set real number of channels for ISOBMFF
- - - - -
1 changed file:
- modules/mux/mp4/libmp4mux.c
Changes:
=====================================
modules/mux/mp4/libmp4mux.c
=====================================
@@ -1271,8 +1271,11 @@ static bo_t *GetSounBox(vlc_object_t *p_obj, mp4mux_trackinfo_t *p_track, bool b
     // channel-count
     if(i_qt_version == 0 && afmt->i_channels == 1)
         bo_add_16be(soun, 1);
+    else if(b_mov)
+        bo_add_16be(soun, (i_qt_version == 2) ? 3 : 2); // only 1|2 for v0/1, 3 for v3
     else
-        bo_add_16be(soun, 2);
+        bo_add_16be(soun, afmt->i_channels);
+
     // sample size
     if(i_qt_version == 0 && i_uncompressed_bps == 8)
         bo_add_16be(soun, 8);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5ebffbaa76ed7c435b0860a30030508ae2c7dfb5
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/5ebffbaa76ed7c435b0860a30030508ae2c7dfb5
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
    
    
More information about the vlc-commits
mailing list