From 9adcf628eef9a77dc188783a997aad9615060644 Mon Sep 17 00:00:00 2001 From: Jiyong Min Date: Tue, 24 Jan 2017 15:23:20 +0900 Subject: [PATCH] Enable VP8 & VP9 decoder and add patch related with VP8 & VP9 [Enable] --enable-parser=vp8 --enable-decoder=vp8 --enable-decoder=vp9 [Patch] arm: use a local label instead of the function symbol in ff_prefetch_arm Avoids a relocation which might end out of range for thumb2. Reported-By: Ludovic Fauvet Bug-Id: https://bugs.webkit.org/show_bug.cgi?id=137022 CC: libav-stable@libav.org Change-Id: Id4c2acac8f150f81df654fffccde6433d68869ff Signed-off-by: jiyong.min (cherry picked from commit cd3ed69efc06591c75a0a3fd62a28092791cd72d) --- libavcodec/arm/videodsp_armv5te.S | 3 ++- packaging/libav.spec | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/libavcodec/arm/videodsp_armv5te.S b/libavcodec/arm/videodsp_armv5te.S index bbd0a61..0510019 100644 --- a/libavcodec/arm/videodsp_armv5te.S +++ b/libavcodec/arm/videodsp_armv5te.S @@ -23,9 +23,10 @@ #include "libavutil/arm/asm.S" function ff_prefetch_arm, export=1 +1: subs r2, r2, #1 pld [r0] add r0, r0, r1 - bne X(ff_prefetch_arm) + bne 1b bx lr endfunc diff --git a/packaging/libav.spec b/packaging/libav.spec index 865c665..ce3af33 100755 --- a/packaging/libav.spec +++ b/packaging/libav.spec @@ -141,6 +141,12 @@ export CONFIGURE_OPTIONS="--enable-shared --disable-static \ --enable-fft --enable-rdft --enable-mdct --enable-neon \ %{?asan:--disable-inline-asm} \ " + +%if 0%{?TIZEN_PRODUCT_TV} +export CONFIGURE_OPTIONS+="--enable-parser=vp8 --enable-decoder=vp8 --enable-decoder=vp9 " +%else +%endif + %ifarch %{arm} aarch64 export CONFIGURE_OPTIONS+="--disable-mmx " %else -- 2.7.4