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 17:29:12 +0000 (18:29 +0100)
commitcc27b8e09face7bbc14aa6865d24261f56712f57
treebabf08e86de381ec3dda572678de7f8a3d862819
parent0d8a17410b2f6ee9524e36a50da5309443cf8394
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