aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-01-26 19:14:02 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-01-26 19:14:02 +0000
commitac806113fefd13dc4fb40507148e8f799d28de97 (patch)
tree8b236d094a5d85fc3dfed4ad1e99de4eb202edc4 /libavcodec
parent9ff5f17543cbd94198205af428ee151d3bacc1d7 (diff)
downloadffmpeg-ac806113fefd13dc4fb40507148e8f799d28de97.tar.gz
10l
Originally committed as revision 2726 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegaudiodec.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libavcodec/mpegaudiodec.c b/libavcodec/mpegaudiodec.c
index a0fa0bf1bc..09e9b8cdbc 100644
--- a/libavcodec/mpegaudiodec.c
+++ b/libavcodec/mpegaudiodec.c
@@ -318,6 +318,11 @@ static int decode_init(AVCodecContext * avctx)
static int init=0;
int i, j, k;
+ if(avctx->antialias_algo == FF_AA_INT)
+ s->compute_antialias= compute_antialias_integer;
+ else
+ s->compute_antialias= compute_antialias_float;
+
if (!init && !avctx->parse_only) {
/* scale factors table for layer 1/2 */
for(i=0;i<64;i++) {
@@ -463,10 +468,6 @@ static int decode_init(AVCodecContext * avctx)
}
}
- if(avctx->antialias_algo == FF_AA_INT)
- s->compute_antialias= compute_antialias_integer;
- else
- s->compute_antialias= compute_antialias_float;
for(i=0;i<8;i++) {
float ci, cs, ca;
ci = ci_table[i];