Don't manipulate duration when it's AV_NOPTS_VALUE.
authorDale Curtis <dalecurtis@chromium.org>
Tue, 28 Nov 2017 22:26:55 +0000 (14:26 -0800)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit532f0d1278c049a9f55d0de3f7b56b958c598440
treee76672e266816722b77c835b524a557069163d8b
parente6c6bb218e0b4ae4b6963268d6488cf6104656d0
Don't manipulate duration when it's AV_NOPTS_VALUE.

This leads to signed integer overflow.

Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit c5fd57f483d2ad8e34551b78509f1e14136f73c0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/oggparsevp8.c