summaryrefslogtreecommitdiff
path: root/libavformat/segafilmenc.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-01-14 04:13:30 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2020-01-14 23:00:35 +0100
commit8ae026d74f599b2d00b91798af1c1067a879007c (patch)
tree5992464fff22e7bb712d633d976e44109480e871 /libavformat/segafilmenc.c
parent44a80897e86f3a8d576e8d5a14df218be767aeab (diff)
avformat/segafilmenc: Fix undefined left shift of 1 by 31 places
by changing the type to unsigned. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/segafilmenc.c')
-rw-r--r--libavformat/segafilmenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/segafilmenc.c b/libavformat/segafilmenc.c
index 812d0ad64e..d721ec38fa 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 */