diff options
author | Dale Curtis <dalecurtis@chromium.org> | 2017-11-17 13:35:56 -0800 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-01-31 22:56:14 +0100 |
commit | 2543475730b9c6fcbfe9b0575f959d9c3015a50c (patch) | |
tree | 37cb4ed8b2c7744ec28ae23f7e6e3b7f1067c4cb /cmdutils.c | |
parent | cf32c814ed1fc4e3c9e50c85e120b17c59dd6a69 (diff) | |
download | ffmpeg-2543475730b9c6fcbfe9b0575f959d9c3015a50c.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 'cmdutils.c')
0 files changed, 0 insertions, 0 deletions