diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2017-11-17 13:35:56 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-01-08 23:19:14 +0100 |
commit | fc3e4c9ab300caa0bf8d95ae6c3fed8a22d488b0 (patch) | |
tree | b9b6c782d5bb927328237d6c80d7c44ec469ba3c /libavformat/framehash.c | |
parent | 50dd0e43af843e112ad95f786a783d6cbeecbd96 (diff) | |
download | ffmpeg-fc3e4c9ab300caa0bf8d95ae6c3fed8a22d488b0.tar.gz |
avformat/utils: Prevent undefined shift with wrap_bits > 64.
2LL << (wrap_bits=64 - 1) does not fit in int64_t; change the
code to use a uint64_t (2ULL) and add an av_assert2() to
ensure wrap_bits <= 64.
Signed-off-by: Dale Curtis <dalecurtis@chromium.org>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 03fbc0daa7e37af024f8b017a28105c32bbe25ca)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/framehash.c')
0 files changed, 0 insertions, 0 deletions