François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
1857cf2c by François Cartegnie at 2026-01-13T20:13:38+01:00
demux: mp4: check raw audio channels count
refs #29540
- - - - -
1 changed file:
- modules/demux/mp4/essetup.c
Changes:
=====================================
modules/demux/mp4/essetup.c
=====================================
@@ -1369,6 +1369,10 @@ int SetupAudioES( demux_t *p_demux, const mp4_track_t
*p_track,
if (p_SA3D && BOXDATA(p_SA3D))
p_fmt->audio.channel_type = AUDIO_CHANNEL_TYPE_AMBISONICS;
+ /* Sanity check for raw audio */
+ if( aout_BitsPerSample(p_fmt->i_codec) && p_soun->i_channelcount == 0 )
+ return 0;
+
return 1;
}
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/1857cf2ceb5b37acf9e07f4c99936bca8460a4bb
--
View it on GitLab:
https://code.videolan.org/videolan/vlc/-/commit/1857cf2ceb5b37acf9e07f4c99936bca8460a4bb
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits