diff --git a/libavcodec/wma.c b/libavcodec/wma.c index d8949d5f5f..99a87f62fa 100644 --- a/libavcodec/wma.c +++ b/libavcodec/wma.c @@ -451,7 +451,7 @@ int ff_wma_run_level_decode(AVCodecContext *avctx, GetBitContext *gb, /** normal code */ offset += run_table[code]; sign = get_bits1(gb) - 1; - iptr[offset & coef_mask] = ilvl[code] ^ sign << 31; + iptr[offset & coef_mask] = ilvl[code] ^ (sign & 0x80000000); } else if (code == 1) { /** EOB */ break;