avformat/movenc: Check input sample count
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 6 Jul 2018 20:23:25 +0000 (22:23 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 9 Jul 2018 23:52:56 +0000 (01:52 +0200)
commit5775f837963dcf178876ca7d618e6d7dead830c0
treedb7e52ab202bd190cbebd6667e3ee2a7b8a8c5a0
parent270a7ff111aa95793ba156b797f1d1e4caaa7efd
avformat/movenc: Check input sample count

Fixes: division by 0
Fixes: fpe_movenc.c_199_1.wav
Fixes: fpe_movenc.c_199_2.wav
Fixes: fpe_movenc.c_199_3.wav
Fixes: fpe_movenc.c_199_4.wav
Fixes: fpe_movenc.c_199_5.wav
Fixes: fpe_movenc.c_199_6.wav
Fixes: fpe_movenc.c_199_7.wav

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