[FFmpeg-cvslog] swscale/arm: fix build error with --enable-shared

Yu Xiaolei git at videolan.org
Sat Dec 28 17:48:41 CET 2013


ffmpeg | branch: master | Yu Xiaolei <dreifachstein at gmail.com> | Sat Dec 28 10:08:43 2013 +0800| [af228a9f9f00746615baa4fb72b71a81930c5916] | committer: Michael Niedermayer

swscale/arm: fix build error with --enable-shared

    use string comparison in assembler derivatives to prevents assembler from treating names in test expressions as imported symbols

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=af228a9f9f00746615baa4fb72b71a81930c5916
---

 libswscale/arm/rgb2yuv_neon_common.S |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libswscale/arm/rgb2yuv_neon_common.S b/libswscale/arm/rgb2yuv_neon_common.S
index 3266229..a07759e 100644
--- a/libswscale/arm/rgb2yuv_neon_common.S
+++ b/libswscale/arm/rgb2yuv_neon_common.S
@@ -170,7 +170,7 @@ endfunc
 .endm
 
 .macro store_y8_16x1            dst, count
-.if \count == 0
+.ifc "\count",""
     vstmia      \dst!,  {y8x16}
 .else
     vstmia      \dst,   {y8x16}
@@ -179,7 +179,7 @@ endfunc
 .endm
 
 .macro store_chroma_nv12_8x1    dst, count
-.if \count == 0
+.ifc "\count",""
     vst2.i8     {u8x8, v8x8},   [\dst]!
 .else
     vst2.i8     {u8x8, v8x8},   [\dst], \count
@@ -187,7 +187,7 @@ endfunc
 .endm
 
 .macro store_chroma_nv21_8x1    dst, count
-.if \count == 0
+.ifc "\count",""
     vst2.i8     {v8x8, u8x8},   [\dst]!
 .else
     vst2.i8     {v8x8, u8x8},   [\dst], \count
@@ -195,7 +195,7 @@ endfunc
 .endm
 
 .macro load_8888_16x1   a, b, c, d, src, count
-.if \count == 0
+.ifc "\count",""
     vld4.8      {\a\()8x16_l, \b\()8x16_l, \c\()8x16_l, \d\()8x16_l},  [\src]!
     vld4.8      {\a\()8x16_h, \b\()8x16_h, \c\()8x16_h, \d\()8x16_h},  [\src]!
 .else
@@ -265,7 +265,7 @@ alias   BIAS_Y, q2
     alias_qw  \d\()8x16, q6, \set
 .endm
 
-.macro kernel_420_16x2  rgb_fmt, yuv_fmt, rgb0, rgb1, y0, y1, chroma, count=0
+.macro kernel_420_16x2  rgb_fmt, yuv_fmt, rgb0, rgb1, y0, y1, chroma, count
     alias_src_\rgb_fmt
     alias_dst_\yuv_fmt
 



More information about the ffmpeg-cvslog mailing list