diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2021-03-26 18:22:24 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-01 14:52:18 +0200 |
commit | b7565b65b87845d5476343d454976e8f26c2dfc6 (patch) | |
tree | 60c41d5da5b8ec18660f7007f1c541f89c47bae6 /libavutil/pixdesc.c | |
parent | 3ef65fd4d1d0cdfa0b60351c719bef93d3664ea2 (diff) | |
download | ffmpeg-b7565b65b87845d5476343d454976e8f26c2dfc6.tar.gz |
avutil/pixdesc: Fix 1 << 32
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavutil/pixdesc.c')
-rw-r--r-- | libavutil/pixdesc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/pixdesc.c b/libavutil/pixdesc.c index 2a919461a5..18c7a0efc8 100644 --- a/libavutil/pixdesc.c +++ b/libavutil/pixdesc.c @@ -2659,7 +2659,7 @@ void ff_check_pixfmt_descriptors(void){ continue; av_read_image_line(tmp, (void*)data, linesize, d, 0, 0, j, 2, 0); av_assert0(tmp[0] == 0 && tmp[1] == 0); - tmp[0] = tmp[1] = (1<<c->depth) - 1; + tmp[0] = tmp[1] = (1ULL << c->depth) - 1; av_write_image_line(tmp, data, linesize, d, 0, 0, j, 2); } } |