avformat/movenc: Write version 2 of audio atom if channels is not known
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 7 Jul 2018 22:16:42 +0000 (00:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commitfd53179f4a71e0acd807bdfff112a55e204fa4ba
tree21632ded31377b7d4e356925d36a1a55c2231d66
parent5db47b3983ef23c1676ddcd7a88c22b5f38b0230
avformat/movenc: Write version 2 of audio atom if channels is not known

The version 1 needs the channel count and would divide by 0
Fixes: division by 0
Fixes: fpe_movenc.c_1108_1.ogg
Fixes: fpe_movenc.c_1108_2.ogg
Fixes: fpe_movenc.c_1108_3.wav

Found-by: #CHEN HONGXU# <HCHEN017@e.ntu.edu.sg>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit fa19fbcf712a6a6cc5a5cfdc3254a97b9bce6582)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c