From 8ae026d74f599b2d00b91798af1c1067a879007c Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 14 Jan 2020 04:13:30 +0100 Subject: [PATCH 1/1] avformat/segafilmenc: Fix undefined left shift of 1 by 31 places by changing the type to unsigned. Signed-off-by: Andreas Rheinhardt Signed-off-by: Michael Niedermayer --- libavformat/segafilmenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c index 812d0ad64e9..d721ec38fa9 100644 --- a/libavformat/segafilmenc.c +++ b/libavformat/segafilmenc.c @@ -70,7 +70,7 @@ static int film_write_packet_to_header(AVFormatContext *format_context, FILMPack info2 = pkt->duration; /* The top bit being set indicates a key frame */ if (!pkt->keyframe) - info1 |= (1 << 31); + info1 |= 1U << 31; } /* Write the 16-byte sample info packet to the STAB chunk in the header */ -- 2.39.2