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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit8bea0c307dee3890c8d64c802ff34087ed0caf89
tree067364c1a8a6368551db3bdc13d88ea47da433eb
parent1bc4e743f5618315b11478448058d8757d8c7576
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