projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6561432
)
PPC: use Altivec IMDCT only for supported sizes
author
Mans Rullgard
<mans@mansr.com>
Tue, 5 Jul 2011 14:53:05 +0000
(15:53 +0100)
committer
Mans Rullgard
<mans@mansr.com>
Tue, 5 Jul 2011 15:01:56 +0000
(16:01 +0100)
The Altivec IMDCT works with size 32 and higher only.
Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/ppc/fft_altivec.c
patch
|
blob
|
history
diff --git
a/libavcodec/ppc/fft_altivec.c
b/libavcodec/ppc/fft_altivec.c
index
435024a
..
39830b2
100644
(file)
--- a/
libavcodec/ppc/fft_altivec.c
+++ b/
libavcodec/ppc/fft_altivec.c
@@
-141,7
+141,9
@@
av_cold void ff_fft_init_altivec(FFTContext *s)
{
#if HAVE_GNU_AS
s->fft_calc = ff_fft_calc_interleave_altivec;
- s->imdct_calc = ff_imdct_calc_altivec;
- s->imdct_half = ff_imdct_half_altivec;
+ if (s->mdct_bits >= 5) {
+ s->imdct_calc = ff_imdct_calc_altivec;
+ s->imdct_half = ff_imdct_half_altivec;
+ }
#endif
}