avformat/oggparseopus: Check opus_duration() return value
authorJames Almer <jamrial@gmail.com>
Thu, 12 Dec 2013 06:34:19 +0000 (03:34 -0300)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 12 Dec 2013 16:26:19 +0000 (17:26 +0100)
commitc619e14c314b44d86a8d552259afb957c0b6775d
tree79dc3c1fdad416fab66ff3429d5d19292d4ec424
parent30ee4b3393eb1ae69c5eb8de87a5773593b3c6bb
avformat/oggparseopus: Check opus_duration() return value

Regression since 39d11d599cd292485fe991cd22e10d7a1738b3bc

os->pduration would be wrongly assigned a negative value on invalid packets
instead of aborting.

Signed-off-by: James Almer <jamrial@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/oggparseopus.c