ffmpeg | branch: release/4.4 | Andreas Rheinhardt 
<[email protected]> | Fri Mar 26 18:22:24 2021 +0100| 
[3d473a89259df5b27065db759af0809809f7a0a6] | committer: Andreas Rheinhardt

avutil/pixdesc: Fix 1 << 32

Signed-off-by: Andreas Rheinhardt <[email protected]>
(cherry picked from commit b7565b65b87845d5476343d454976e8f26c2dfc6)

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3d473a89259df5b27065db759af0809809f7a0a6
---

 libavutil/pixdesc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
         }
     }

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to