demux: mp4: base chapters + ES logic on brand instead of codec
This fix no longer relies on the codec and allows to avoid enabling chapters as SPU_ES as ffmpeg muxes chapters the Quicktime way without using that brand.
refs #25561 (closed)
(adapted from commit ca6551dd)