mirror of
https://codeberg.org/kiss-community/repo
synced 2025-01-03 00:20:09 -07:00
ffmpeg: 6.0.1
This commit is contained in:
parent
9a1eb5e567
commit
ff7d07e851
@ -1,7 +1,6 @@
|
|||||||
#!/bin/sh -e
|
#!/bin/sh -e
|
||||||
|
|
||||||
patch -p1 < add-av_stream_get_first_dts-for-chromium.patch
|
patch -p1 < add-av_stream_get_first_dts-for-chromium.patch
|
||||||
patch -p1 < binutils-2.41.patch
|
|
||||||
|
|
||||||
./configure \
|
./configure \
|
||||||
--cc="$CC" \
|
--cc="$CC" \
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
4879074c357102f85932673044c57c144b0c188ae58edec2a115965536ee340f5e
|
622b3ac14ee6259edfc93ddd911672aedd654fe78518848051eb8dfe907c739c62
|
||||||
4f16712641b400498753572c0f2d1e30f28fa0df0ea8d0bd2da9d2d74f6613b3ee
|
4f16712641b400498753572c0f2d1e30f28fa0df0ea8d0bd2da9d2d74f6613b3ee
|
||||||
4ce8f7ccc5b582575bcf16c399a3cccbd53c8347ae836951ea50c5045f1b8f3232
|
|
||||||
|
@ -1,60 +0,0 @@
|
|||||||
diff --git a/libavcodec/x86/mathops.h b/libavcodec/x86/mathops.h
|
|
||||||
index 6298f5e..ca7e2df 100644
|
|
||||||
--- a/libavcodec/x86/mathops.h
|
|
||||||
+++ b/libavcodec/x86/mathops.h
|
|
||||||
@@ -35,12 +35,20 @@
|
|
||||||
static av_always_inline av_const int MULL(int a, int b, unsigned shift)
|
|
||||||
{
|
|
||||||
int rt, dummy;
|
|
||||||
+ if (__builtin_constant_p(shift))
|
|
||||||
__asm__ (
|
|
||||||
"imull %3 \n\t"
|
|
||||||
"shrdl %4, %%edx, %%eax \n\t"
|
|
||||||
:"=a"(rt), "=d"(dummy)
|
|
||||||
- :"a"(a), "rm"(b), "ci"((uint8_t)shift)
|
|
||||||
+ :"a"(a), "rm"(b), "i"(shift & 0x1F)
|
|
||||||
);
|
|
||||||
+ else
|
|
||||||
+ __asm__ (
|
|
||||||
+ "imull %3 \n\t"
|
|
||||||
+ "shrdl %4, %%edx, %%eax \n\t"
|
|
||||||
+ :"=a"(rt), "=d"(dummy)
|
|
||||||
+ :"a"(a), "rm"(b), "c"((uint8_t)shift)
|
|
||||||
+ );
|
|
||||||
return rt;
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -113,19 +121,31 @@ __asm__ volatile(\
|
|
||||||
// avoid +32 for shift optimization (gcc should do that ...)
|
|
||||||
#define NEG_SSR32 NEG_SSR32
|
|
||||||
static inline int32_t NEG_SSR32( int32_t a, int8_t s){
|
|
||||||
+ if (__builtin_constant_p(s))
|
|
||||||
__asm__ ("sarl %1, %0\n\t"
|
|
||||||
: "+r" (a)
|
|
||||||
- : "ic" ((uint8_t)(-s))
|
|
||||||
+ : "i" (-s & 0x1F)
|
|
||||||
);
|
|
||||||
+ else
|
|
||||||
+ __asm__ ("sarl %1, %0\n\t"
|
|
||||||
+ : "+r" (a)
|
|
||||||
+ : "c" ((uint8_t)(-s))
|
|
||||||
+ );
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define NEG_USR32 NEG_USR32
|
|
||||||
static inline uint32_t NEG_USR32(uint32_t a, int8_t s){
|
|
||||||
+ if (__builtin_constant_p(s))
|
|
||||||
__asm__ ("shrl %1, %0\n\t"
|
|
||||||
: "+r" (a)
|
|
||||||
- : "ic" ((uint8_t)(-s))
|
|
||||||
+ : "i" (-s & 0x1F)
|
|
||||||
);
|
|
||||||
+ else
|
|
||||||
+ __asm__ ("shrl %1, %0\n\t"
|
|
||||||
+ : "+r" (a)
|
|
||||||
+ : "c" ((uint8_t)(-s))
|
|
||||||
+ );
|
|
||||||
return a;
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,2 @@
|
|||||||
https://ffmpeg.org/releases/ffmpeg-6.0.tar.xz
|
https://ffmpeg.org/releases/ffmpeg-6.0.1.tar.xz
|
||||||
patches/add-av_stream_get_first_dts-for-chromium.patch
|
patches/add-av_stream_get_first_dts-for-chromium.patch
|
||||||
patches/binutils-2.41.patch
|
|
||||||
|
@ -1 +1 @@
|
|||||||
6.0 1
|
6.0.1 1
|
||||||
|
Loading…
Reference in New Issue
Block a user