git.videolan.org
/
ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
avcodec/nellymoser: Fix multiple left shift of negative value -8591
[ffmpeg.git]
/
libavcodec
/
nellymoser.c
diff --git
a/libavcodec/nellymoser.c
b/libavcodec/nellymoser.c
index
027726e
..
5ff6583
100644
(file)
--- a/
libavcodec/nellymoser.c
+++ b/
libavcodec/nellymoser.c
@@
-84,7
+84,7
@@
const int16_t ff_nelly_delta_table[32] = {
static inline int signed_shift(int i, int shift) {
if (shift > 0)
- return i << shift;
+ return
(unsigned)
i << shift;
return i >> -shift;
}
@@
-108,7
+108,7
@@
static int headroom(int *la)
return 31;
}
l = 30 - av_log2(FFABS(*la));
- *la
<<=
l;
+ *la
*= 1<<
l;
return l;
}