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, 9 Jul 2018 21:10:39 +0000 (23:10 +0200)
commitfa19fbcf712a6a6cc5a5cfdc3254a97b9bce6582
tree01cc3e054205abe5d0432c58407d4d1de0726b46
parent6cc6b619b95128ef084720c42ef0d361376e8f09
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>
libavformat/movenc.c