diff options
author | Mans Rullgard <mans@mansr.com> | 2012-12-07 13:53:56 +0000 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2013-05-09 11:29:05 +0200 |
commit | c65763a2c677d75388828b9411a69e95bd3ab7af (patch) | |
tree | 5d64d2df82f3c487c195386f7f4ab847138ad158 /libavcodec/mjpeg2jpeg_bsf.c | |
parent | 9c713f30e4913a28d93eb37ea5db7f62be4c0ef6 (diff) | |
download | ffmpeg-c65763a2c677d75388828b9411a69e95bd3ab7af.tar.gz |
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>
(cherry picked from commit 91ac403b1316d59b4f43c4ea0f237e24cec2819a)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/mjpeg2jpeg_bsf.c')
0 files changed, 0 insertions, 0 deletions