]> git.sesse.net Git - ffmpeg/commitdiff
x86/dsputil: fix compilation when h263 decoder/encoder are disabled.
authorRonald S. Bultje <rsbultje@gmail.com>
Mon, 18 Feb 2013 02:20:17 +0000 (18:20 -0800)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 18 Feb 2013 14:18:56 +0000 (15:18 +0100)
The symbol "ff_h263_loop_filter_strength" is defined in h263.c, but
the h263 loopfilter functions (in the .asm file) are not optimized
out (even though their function pointers are never assigned).

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/x86/dsputil.asm

index f5df52112a7753e330091fadc2fed0206f59c9f6..19acd8fec9b893a817b3636f1de4797dba68d811 100644 (file)
@@ -653,7 +653,7 @@ BSWAP32_BUF
 INIT_XMM ssse3
 BSWAP32_BUF
 
-
+%if CONFIG_H263_DECODER || CONFIG_H263_ENCODER
 %macro H263_LOOP_FILTER 5
     pxor         m7, m7
     mova         m0, [%1]
@@ -813,3 +813,4 @@ cglobal h263_h_loop_filter, 3,5,0,32
     punpckhdq    m6, m6
     movd    [r4+r3], m6
     RET
+%endif ; CONFIG_H263_DECODER || CONFIG_H263_ENCODER