[FFmpeg-devel] [PATCH 07/12] WMA: use fill_float from dsputil
Mans Rullgard
mans
Sun Sep 27 12:49:23 CEST 2009
---
libavcodec/wmadec.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c
index e5f0508..52ea7a3 100644
--- a/libavcodec/wmadec.c
+++ b/libavcodec/wmadec.c
@@ -262,9 +262,8 @@ static int decode_exp_vlc(WMACodecContext *s, int ch)
v = pow(10, last_exp * (1.0 / 16.0));
max_scale = v;
n = *ptr++;
- do {
- *q++ = v;
- } while (--n);
+ s->dsp.fill_float(q, v, n);
+ q += n;
}else
last_exp = 36;
@@ -275,13 +274,13 @@ static int decode_exp_vlc(WMACodecContext *s, int ch)
/* NOTE: this offset is the same as MPEG4 AAC ! */
last_exp += code - 60;
/* XXX: use a table */
+ av_log(NULL, AV_LOG_ERROR, "exp= %d\n", last_exp);
v = pow(10, last_exp * (1.0 / 16.0));
if (v > max_scale)
max_scale = v;
n = *ptr++;
- do {
- *q++ = v;
- } while (--n);
+ s->dsp.fill_float(q, v, n);
+ q += n;
}
s->max_exponent[ch] = max_scale;
return 0;
--
1.6.4.4
More information about the ffmpeg-devel
mailing list