1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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 8ae026d74f)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
This commit is contained in:
Andreas Rheinhardt 2020-01-14 04:13:30 +01:00
parent 02368962f5
commit 84abf2ee32

View File

@ -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 */