avformat/utils: Move end_time1 AV_NOPTS_VALUE Check after rescale
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Dec 2015 21:59:56 +0000 (22:59 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 2 Dec 2015 23:13:27 +0000 (00:13 +0100)
commitec7a3be11ed33002c8609e5d30e908a7c8827a43
tree347d986c14e110a8a20c0a6ec05887e977edc1bc
parentd872643cfe07e39fee42c846d5a3f57d5cad6ab6
avformat/utils: Move end_time1 AV_NOPTS_VALUE Check after rescale

Fixes integer overflow
Fixes: 266ee543812e934f7b4a72923a2701d4/signal_sigabrt_7ffff6ae7cc9_7322_85218d61759d461bdf7387180e8000c9.ogg

Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c