avformat/utils: Check start/end before computing duration in update_stream_timings()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 02:02:41 +0000 (03:02 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 3 Dec 2016 03:10:19 +0000 (04:10 +0100)
commit3af916db3705593a4408bb25671a1ecf5dec813f
treed107e31bf8137ef777df807f0f5cd2fe909f8f9f
parent518beeb72f533a54c4a7136643cff5e9a84c646c
avformat/utils: Check start/end before computing duration in update_stream_timings()

Fixes undefined behavior
Fixes: 637428.ogg

Found-by: Matt Wolenetz <wolenetz@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 90da187f1d334422477886a19eca3c1da29c59a7)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c