diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-09-26 17:24:00 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-09-29 15:33:00 +0300 |
commit | 977f41e274a66c9d257186ca1df8373a09cc4d40 (patch) | |
tree | f6d8025b12c54b0e79c864f68898aae1d58d2879 /libavcodec/mlpdec.c | |
parent | 948f3c19a8bd069768ca411212aaf8c1ed96b10d (diff) |
mlpdec: Fix a undefined left shift of negative number
This fixes a -Wshift-negative-value warning reported with clang 3.7+.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavcodec/mlpdec.c')
-rw-r--r-- | libavcodec/mlpdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c index 169437acef..8cfeea6175 100644 --- a/libavcodec/mlpdec.c +++ b/libavcodec/mlpdec.c @@ -578,7 +578,7 @@ static int read_restart_header(MLPDecodeContext *m, GetBitContext *gbp, /* Default audio coding is 24-bit raw PCM. */ cp->huff_offset = 0; - cp->sign_huff_offset = (-1) << 23; + cp->sign_huff_offset = -(1 << 23); cp->codebook = 0; cp->huff_lsbs = 24; } |