diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-01-14 06:13:30 +0300 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2020-07-02 11:05:25 +0300 |
commit | 2f16093b82dd7ed296c8aab81dce90524a31290b (patch) | |
tree | 50df98992ae869f13ab4906cd1a09fdf23916d12 /libavformat | |
parent | 1e37b669929f3c8d8ad637c93e42c604c8f5a99c (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>
(cherry picked from commit 8ae026d74f599b2d00b91798af1c1067a879007c)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavformat')
-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 5b0d7e69e8..8f44a671dc 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 */ |