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:
92a2626
)
aacenc_ltp: fix assertion
author
Rostislav Pehlivanov
<atomnuker@gmail.com>
Sat, 17 Oct 2015 10:58:33 +0000
(11:58 +0100)
committer
Rostislav Pehlivanov
<atomnuker@gmail.com>
Sat, 17 Oct 2015 11:00:30 +0000
(12:00 +0100)
A value of 2048 will overflow 11 bits.
libavcodec/aacenc_ltp.c
patch
|
blob
|
history
diff --git
a/libavcodec/aacenc_ltp.c
b/libavcodec/aacenc_ltp.c
index
066e195
..
0bd8954
100644
(file)
--- a/
libavcodec/aacenc_ltp.c
+++ b/
libavcodec/aacenc_ltp.c
@@
-101,7
+101,7
@@
void ff_aac_update_ltp(AACEncContext *s, SingleChannelElement *sce)
lag = i;
}
}
- lag = av_clip(lag, 0, 204
8); /* 11 bits => 2^11 = 2048
*/
+ lag = av_clip(lag, 0, 204
7); /* 11 bits => 2^11 = 0->2047
*/
if (!lag) {
sce->ics.ltp.lag = lag;