projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
217b44d
)
10l: store the result of clipping added in r23035
author
Alex Converse
<alex.converse@gmail.com>
Thu, 6 May 2010 20:38:42 +0000
(20:38 +0000)
committer
Alex Converse
<alex.converse@gmail.com>
Thu, 6 May 2010 20:38:42 +0000
(20:38 +0000)
Originally committed as revision 23037 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/aaccoder.c
patch
|
blob
|
history
diff --git
a/libavcodec/aaccoder.c
b/libavcodec/aaccoder.c
index
d30f854
..
0957469
100644
(file)
--- a/
libavcodec/aaccoder.c
+++ b/
libavcodec/aaccoder.c
@@
-804,7
+804,7
@@
static void search_for_quantizers_faac(AVCodecContext *avctx, AACEncContext *s,
if (dist > uplim[w*16+g])
step = -step;
scf += step;
- av_clip_uint8(scf);
+
scf =
av_clip_uint8(scf);
step = scf - prev_scf;
if (FFABS(step) <= 1 || (step > 0 && scf >= max_scf) || (step < 0 && scf <= min_scf)) {
sce->sf_idx[w*16+g] = av_clip(scf, min_scf, max_scf);