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:16:13 +0000 (19:16 +0200)
commit87ddf73e52b412ee015108ec2f1aaac7a05c947f
treeb92a04c8596863e96bc8fb2651061c6663769c80
parent0e9ecdabf3a43dadb59e690dcedc5798f779960d
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