summaryrefslogtreecommitdiff
path: root/libavformat/paf.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/paf.c')
-rw-r--r--libavformat/paf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/paf.c b/libavformat/paf.c
index 8fe2ac5638..e67732bb83 100644
--- a/libavformat/paf.c
+++ b/libavformat/paf.c
@@ -212,8 +212,8 @@ static int read_packet(AVFormatContext *s, AVPacket *pkt)
if (p->current_frame_block >= p->frame_blks)
return AVERROR_INVALIDDATA;
- offset = p->blocks_offset_table[p->current_frame_block] & ~(1 << 31);
- if (p->blocks_offset_table[p->current_frame_block] & (1 << 31)) {
+ offset = p->blocks_offset_table[p->current_frame_block] & ~(1U << 31);
+ if (p->blocks_offset_table[p->current_frame_block] & (1U << 31)) {
if (offset > p->audio_size - p->buffer_size)
return AVERROR_INVALIDDATA;