diff options
author | Mans Rullgard <mans@mansr.com> | 2011-10-09 20:46:22 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2011-10-09 23:04:03 +0100 |
commit | ba3f07d0611d9a6c10eaa90b3c058ecdffe76676 (patch) | |
tree | ddf63764bd9eb66291b8009d240f45fd84cf58ac /libavcodec/wmavoice.c | |
parent | 05795f35be4b479bfa8d60ed3eb13e0f89e439c0 (diff) | |
download | ffmpeg-ba3f07d0611d9a6c10eaa90b3c058ecdffe76676.tar.gz |
wmavoice: fix a signed overflow
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/wmavoice.c')
-rw-r--r-- | libavcodec/wmavoice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/wmavoice.c b/libavcodec/wmavoice.c index cff3f5fc7e..3b805ac04b 100644 --- a/libavcodec/wmavoice.c +++ b/libavcodec/wmavoice.c @@ -1085,7 +1085,7 @@ static void aw_pulse_set2(WMAVoiceContext *s, GetBitContext *gb, int excl_range = s->aw_pulse_range; // always 16 or 24 uint16_t *use_mask_ptr = &use_mask[idx >> 4]; int first_sh = 16 - (idx & 15); - *use_mask_ptr++ &= 0xFFFF << first_sh; + *use_mask_ptr++ &= 0xFFFFu << first_sh; excl_range -= first_sh; if (excl_range >= 16) { *use_mask_ptr++ = 0; |