]> git.sesse.net Git - ffmpeg/commit
lavf: fix arithmetic overflows in avformat_seek_file()
authorMans Rullgard <mans@mansr.com>
Fri, 7 Dec 2012 13:53:56 +0000 (13:53 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 8 Dec 2012 19:35:16 +0000 (19:35 +0000)
commit91ac403b1316d59b4f43c4ea0f237e24cec2819a
tree78e06c14b5084e8b0c849837860801fc09d5e894
parent6a1aa5cb26479eda12320e9b9ced9cc058bf5b33
lavf: fix arithmetic overflows in avformat_seek_file()

The values compared here can be more than INT64_MAX apart.  Since the
difference is always positive, converting to uint64_t before subtracting
gives the correct result without overflows.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/utils.c