[FFmpeg-devel] [PATCH] x86/dsputil: fix compilation when h263 decoder/encoder are disabled.

Ronald S. Bultje rsbultje at gmail.com
Mon Feb 18 03:20:17 CET 2013


From: "Ronald S. Bultje" <rsbultje at gmail.com>

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).
---
 libavcodec/x86/dsputil.asm | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/x86/dsputil.asm b/libavcodec/x86/dsputil.asm
index f5df521..19acd8f 100644
--- a/libavcodec/x86/dsputil.asm
+++ b/libavcodec/x86/dsputil.asm
@@ -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
-- 
1.7.11.3



More information about the ffmpeg-devel mailing list