[FFmpeg-cvslog] vp8/x86: move variable assigned inside macro branch.

Ronald S. Bultje git at videolan.org
Sat Dec 27 23:26:33 CET 2014


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Wed Dec 24 14:22:19 2014 -0500| [e42409479f09761a5d613b3fdba72062d909f0ee] | committer: Ronald S. Bultje

vp8/x86: move variable assigned inside macro branch.

The value is not used outside the branch.

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

 libavcodec/x86/vp9lpf.asm |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/x86/vp9lpf.asm b/libavcodec/x86/vp9lpf.asm
index 613a104..73b965a 100644
--- a/libavcodec/x86/vp9lpf.asm
+++ b/libavcodec/x86/vp9lpf.asm
@@ -462,8 +462,8 @@ cglobal vp9_loop_filter_%1_%2_16, 2, 6, 16, %3, dst, stride, mstride, dst2, stri
 
     ; (m3: fm, m8..15: p3 p2 p1 p0 q0 q1 q2 q3)
     ; calc flat8in (if not 44_16) and hev masks
-    mova                m6, [pb_81]                     ; [1 1 1 1 ...] ^ 0x80
 %if %2 != 44
+    mova                m6, [pb_81]                     ; [1 1 1 1 ...] ^ 0x80
     ABSSUB_GT           m2, m8, m11, m6, m5             ; abs(p3 - p0) <= 1
     mova                m8, [pb_80]
     ABSSUB_GT           m1, m9, m11, m6, m5, m8         ; abs(p2 - p0) <= 1



More information about the ffmpeg-cvslog mailing list