Browse Source

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>
tags/n4.3
Andreas Rheinhardt Michael Niedermayer 5 years ago
parent
commit
8ae026d74f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/segafilmenc.c

+ 1
- 1
libavformat/segafilmenc.c 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 */


Loading…
Cancel
Save