]> git.sesse.net Git - ffmpeg/commit
avformat/movenc: fix writing dOps atoms
authorJames Almer <jamrial@gmail.com>
Thu, 15 Apr 2021 04:28:27 +0000 (01:28 -0300)
committerJames Almer <jamrial@gmail.com>
Fri, 16 Apr 2021 14:08:40 +0000 (11:08 -0300)
commitbc010612318ea0bbd31d4b92cbb90ccfbed09631
treea6fd1f3afc9f6b87f75ebbe2f90afd45e79bb002
parent55d667d86af7d13fc5aa2b4071a5b97eb10e2da6
avformat/movenc: fix writing dOps atoms

Don't blindly copy all bytes in extradata past ChannelMappingFamily. Instead
check if ChannelMappingFamily is not 0 and then only write the correct amount
of bytes from ChannelMappingTable, as defined in the spec[1].

Fixes part of ticket #9190.

[1] https://opus-codec.org/docs/opus_in_isobmff.html#4.3.2

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/movenc.c