diff options
author | Andreas Rheinhardt <[email protected]> | 2020-01-14 04:13:30 +0100 |
---|---|---|
committer | Andreas Rheinhardt <[email protected]> | 2020-07-01 23:01:49 +0200 |
commit | 84abf2ee322a31774ec9a6935892900af7244cfe (patch) | |
tree | 6df8b28f47ec5cc2fa531a120a504d9c56cfc9b9 | |
parent | 02368962f583877dcc136cc21fee4cb97458e979 (diff) |
avformat/segafilmenc: Fix undefined left shift of 1 by 31 places
by changing the type to unsigned.
Signed-off-by: Andreas Rheinhardt <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
(cherry picked from commit 8ae026d74f599b2d00b91798af1c1067a879007c)
Signed-off-by: Andreas Rheinhardt <[email protected]>
-rw-r--r-- | libavformat/segafilmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c index 524230e461..7aad8084a5 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 */ |