Skip to content

Commit

Permalink
avformat/segafilmenc: Fix undefined left shift of 1 by 31 places
Browse files Browse the repository at this point in the history
by changing the type to unsigned.

Signed-off-by: Andreas Rheinhardt <[email protected]>
Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
mkver authored and michaelni committed Jan 14, 2020
1 parent 44a8089 commit 8ae026d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavformat/segafilmenc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 8ae026d

Please sign in to comment.