aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bfin/vp3_idct_bfin.S
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-01-31 00:20:30 +0000
committerMåns Rullgård <mans@mansr.com>2010-01-31 00:20:30 +0000
commitd132d50fb8bfd261291055adc9f69cad3d8e640c (patch)
tree00f44c63f801034ca6b5fbaa4bda831d85d122f1 /libavcodec/bfin/vp3_idct_bfin.S
parent6b35d421b9f2a1701fe4d9676be29574f483eef8 (diff)
downloadffmpeg-d132d50fb8bfd261291055adc9f69cad3d8e640c.tar.gz
Blackfin: use SRAM only when CONFIG_SRAM is set
Originally committed as revision 21565 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/bfin/vp3_idct_bfin.S')
-rw-r--r--libavcodec/bfin/vp3_idct_bfin.S5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavcodec/bfin/vp3_idct_bfin.S b/libavcodec/bfin/vp3_idct_bfin.S
index ec8c1bee77..21f732c58d 100644
--- a/libavcodec/bfin/vp3_idct_bfin.S
+++ b/libavcodec/bfin/vp3_idct_bfin.S
@@ -28,9 +28,10 @@ Registers Used : A0, A1, R0-R7, I0-I3, B0, B2, B3, M0-M2, L0-L3, P0-P5, LC0.
*/
+#include "config.h"
#include "config_bfin.h"
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.B,"aw",@progbits
#else
.data
@@ -49,7 +50,7 @@ coefs:
.short 0x18F9; //cos(7pi/16)
.short 0x7D8A; //cos(pi/16)
-#ifdef __FDPIC__
+#if defined(__FDPIC__) && CONFIG_SRAM
.section .l1.data.A
#endif