[FFmpeg-cvslog] mlpdec: Fix a undefined left shift of negative number
Ganesh Ajjanagadde
git at videolan.org
Tue Sep 29 15:27:34 CEST 2015
ffmpeg | branch: master | Ganesh Ajjanagadde <gajjanagadde at gmail.com> | Sat Sep 26 16:24:00 2015 +0200| [977f41e274a66c9d257186ca1df8373a09cc4d40] | committer: Vittorio Giovara
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 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=977f41e274a66c9d257186ca1df8373a09cc4d40
---
libavcodec/mlpdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/mlpdec.c b/libavcodec/mlpdec.c
index 169437a..8cfeea6 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;
}
More information about the ffmpeg-cvslog
mailing list