Skip to content

Commit

Permalink
mux: mp4: set real number of channels for ISOBMFF
Browse files Browse the repository at this point in the history
  • Loading branch information
fcartegnie authored and robUx4 committed Jul 19, 2024
1 parent b940631 commit 5ebffba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/mux/mp4/libmp4mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5ebffba

Please sign in to comment.