changeset 11688:6f5bee041560 libavcodec

10l: store the result of clipping added in r23035
author alexc
date Thu, 06 May 2010 20:38:42 +0000
parents 855ec3d8a62b
children 2312dfbe9251
files aaccoder.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/aaccoder.c	Thu May 06 20:35:10 2010 +0000
+++ b/aaccoder.c	Thu May 06 20:38:42 2010 +0000
@@ -804,7 +804,7 @@
                 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);