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>
Mon, 5 Dec 2016 23:07:50 +0000 (00:07 +0100)
commita0ed412f38f5b65f530528a7969ca3a9d3269be8
treefc401acf86b50f7cf57f425d48f74e26b60e32fe
parent2fb7eb05dcac0469cec52372f2cdb9d15d5926ae
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