Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
db8c1967
Commit
db8c1967
authored
Dec 21, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib: fix broken ffmpeg macosx patch
parent
56cc1c72
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
22 deletions
+22
-22
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
+22
-22
No files found.
extras/contrib/src/Patches/ffmpeg-macosx-intel-mmx.patch
View file @
db8c1967
Index: libavcodec/i386/motion_est_mmx.c
===================================================================
--- libavcodec/i386/motion_est_mmx.c (revision 1
1270
)
--- libavcodec/i386/motion_est_mmx.c (revision 1
6251
)
+++ libavcodec/i386/motion_est_mmx.c (working copy)
@@ -16
7,7 +167
,7 @@
@@ -16
8,7 +168
,7 @@
static inline void sad8_4_mmx2(uint8_t *blk1, uint8_t *blk2, int stride, int h)
{
asm
volatile(
__asm__
volatile(
- "movq "MANGLE(bone)", %%mm5 \n\t"
+ "movq %4, %%mm5 \n\t"
+ "movq %4, %%mm5
\n\t"
"movq (%1), %%mm0 \n\t"
"pavgb 1(%1), %%mm0 \n\t"
"add %3, %1 \n\t"
@@ -19
0,7 +190
,7 @@
@@ -19
1,7 +191
,7 @@
"sub $2, %0 \n\t"
" jg 1b \n\t"
: "+r" (h), "+r" (blk1), "+r" (blk2)
...
...
@@ -20,16 +20,16 @@ Index: libavcodec/i386/motion_est_mmx.c
);
}
@@ -25
8,7 +258
,7 @@
@@ -25
9,7 +259
,7 @@
"punpckhbw %%mm7, %%mm5 \n\t"
"paddw %%mm4, %%mm2 \n\t"
"paddw %%mm5, %%mm3 \n\t"
- "movq 16+"MANGLE(round_tab)", %%mm5 \n\t"
+ "movq 16+%5, %%mm5 \n\t"
+ "movq 16+%5, %%mm5
\n\t"
"paddw %%mm2, %%mm0 \n\t"
"paddw %%mm3, %%mm1 \n\t"
"paddw %%mm5, %%mm0 \n\t"
@@ -28
1,7 +281
,7 @@
@@ -28
2,7 +282
,7 @@
"add %4, %%"REG_a" \n\t"
" js 1b \n\t"
: "+a" (len)
...
...
@@ -37,10 +37,10 @@ Index: libavcodec/i386/motion_est_mmx.c
+ : "r" (blk1 - len), "r" (blk1 -len + stride), "r" (blk2 - len), "r" ((x86_reg)stride), "m" (round_tab[0])
);
}
Index: libavcodec/i386/simple_idct_mmx.c
===================================================================
--- libavcodec/i386/simple_idct_mmx.c (revision 1
1270
)
--- libavcodec/i386/simple_idct_mmx.c (revision 1
6251
)
+++ libavcodec/i386/simple_idct_mmx.c (working copy)
@@ -363,7 +363,7 @@
"movq " #src4 ", %%mm1 \n\t" /* R6 R2 r6 r2 */\
...
...
@@ -89,7 +89,7 @@ Index: libavcodec/i386/simple_idct_mmx.c
}
Index: libavcodec/i386/cavsdsp_mmx.c
===================================================================
--- libavcodec/i386/cavsdsp_mmx.c (revision 1
3752
)
--- libavcodec/i386/cavsdsp_mmx.c (revision 1
6251
)
+++ libavcodec/i386/cavsdsp_mmx.c (working copy)
@@ -25,8 +25,30 @@
#include "libavutil/common.h"
...
...
@@ -125,17 +125,17 @@ Index: libavcodec/i386/cavsdsp_mmx.c
* inverse transform
Index: libavcodec/i386/flacdsp_mmx.c
===================================================================
--- libavcodec/i386/flacdsp_mmx.c (revision 1
1888
)
--- libavcodec/i386/flacdsp_mmx.c (revision 1
6251
)
+++ libavcodec/i386/flacdsp_mmx.c (working copy)
@@ -2
6,7 +26
,6 @@
@@ -2
7,7 +27
,6 @@
double c = 2.0 / (len-1.0);
int n2 = len>>1;
x86_reg i = -n2*sizeof(int32_t);
- x86_reg j = n2*sizeof(int32_t);
asm
volatile(
"movsd %0, %%xmm7 \n\t"
"movapd
%1, %%xmm6
\n\t"
@@ -5
4,7 +53
,7 @@
__asm__
volatile(
"movsd %0, %%xmm7
\n\t"
"movapd
"MANGLE(ff_pd_1)", %%xmm6
\n\t"
@@ -5
5,7 +54
,7 @@
"sub $8, %1 \n\t"\
"add $8, %0 \n\t"\
"jl 1b \n\t"\
...
...
@@ -144,21 +144,21 @@ Index: libavcodec/i386/flacdsp_mmx.c
:"r"(w_data+n2), "r"(data+n2)\
);
if(len&1)
@@ -8
4,6 +83
,8 @@
@@ -8
8,6 +87
,8 @@
"movsd "MANGLE(ff_pd_1)", %%xmm0 \n\t"
"movsd "MANGLE(ff_pd_1)", %%xmm1 \n\t"
"movsd "MANGLE(ff_pd_1)", %%xmm2 \n\t"
+ :: "m"(*ff_pd_1) );
+
asm
volatile(
+
__asm__
volatile(
"1: \n\t"
"movapd (%4,%0), %%xmm3 \n\t"
"movupd -8(%5,%0), %%xmm4 \n\t"
@@ -11
5,6 +116
,8 @@
asm
volatile(
@@ -11
6,6 +117
,8 @@
__asm__
volatile(
"movsd "MANGLE(ff_pd_1)", %%xmm0 \n\t"
"movsd "MANGLE(ff_pd_1)", %%xmm1 \n\t"
+ :: "m"(*ff_pd_1) );
+
asm
volatile(
+
__asm__
volatile(
"1: \n\t"
"movapd (%3,%0), %%xmm3 \n\t"
"movupd -8(%4,%0), %%xmm4 \n\t"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment