OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948f3c1
)
mlpdec: Fix a undefined left shift of negative number
author
Ganesh Ajjanagadde
<gajjanagadde@gmail.com>
Sat, 26 Sep 2015 14:24:00 +0000
(16:24 +0200)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Tue, 29 Sep 2015 12:33:00 +0000
(14:33 +0200)
This fixes a -Wshift-negative-value warning reported with clang 3.7+.
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavcodec/mlpdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mlpdec.c
b/libavcodec/mlpdec.c
index
169437a
..
8cfeea6
100644
(file)
--- 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;
}