On Mon, 17 Apr 2017, Alexandra Hájková wrote:

---
libavcodec/arm/hevc_idct.S        | 50 ++++++++++++++++++++++++++++++++-------
libavcodec/arm/hevcdsp_init_arm.c | 21 +++++++++++-----
2 files changed, 56 insertions(+), 15 deletions(-)

diff --git a/libavcodec/arm/hevc_idct.S b/libavcodec/arm/hevc_idct.S
index 7fdd7cc..082f832 100644
--- a/libavcodec/arm/hevc_idct.S
+++ b/libavcodec/arm/hevc_idct.S
@@ -30,26 +30,37 @@ const trans, align=4
        .short 57, 43, 25, 9
endconst

-function ff_hevc_idct_4x4_dc_8_neon, export=1
+.macro idct_4x4_dc bitdepth
+function ff_hevc_idct_4x4_dc_\bitdepth\()_neon, export=1
        ldrsh           r1, [r0]
+    .if \bitdepth == 8
        ldr             r2, =0x20
+    .else
+        ldr             r2, =0x8
+    .endif

You shouldn't need any if here at all. Try changing it like this instead:
ldr r2, =(1 << (13 - \bitdepth))

// Martin
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to