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>
Sun, 4 Dec 2016 19:25:15 +0000 (20:25 +0100)
commit66e8f87ebc7897d0b7a92ff748c53481e990a670
treeda87457b32bea0f90aed6495f2cdbad047e2939e
parent6bee6ef0c2ec264b5362d59d8541849653d2456d
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