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>
Mon, 8 Jan 2018 22:19:14 +0000 (23:19 +0100)
commit32d16571924e442fca651902430e87c6e3bb06b3
tree9deee1e6557763fde5899033fa107c3c3126a5c8
parente1a854da2d5477d0bc7338e7708831e1475e06f2
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