summaryrefslogtreecommitdiff
path: root/gst-libs/ext/ffmpeg/patch/function.patch
blob: 7f47957db399ec2f1f65063bc6f1fd20b423b104 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
Index: ffmpeg/libavcodec/i386/mpegvideo_mmx.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/i386/mpegvideo_mmx.c,v
retrieving revision 1.25
diff -u -u -r1.25 mpegvideo_mmx.c
--- ffmpeg/libavcodec/i386/mpegvideo_mmx.c	14 May 2003 15:12:13 -0000	1.25
+++ ffmpeg/libavcodec/i386/mpegvideo_mmx.c	11 Sep 2003 19:34:45 -0000
@@ -488,6 +488,7 @@
     }
 }
 
+#if 0
 #undef HAVE_MMX2
 #define RENAME(a) a ## _MMX
 #include "mpegvideo_mmx_template.c"
@@ -496,6 +497,7 @@
 #undef RENAME
 #define RENAME(a) a ## _MMX2
 #include "mpegvideo_mmx_template.c"
+#endif
 
 void MPV_common_init_mmx(MpegEncContext *s)
 {
@@ -508,6 +510,7 @@
 
         draw_edges = draw_edges_mmx;
 
+#if 0
         if(dct_algo==FF_DCT_AUTO || dct_algo==FF_DCT_MMX){
             if(mm_flags & MM_MMXEXT){
                 s->dct_quantize= dct_quantize_MMX2;
@@ -515,5 +518,6 @@
                 s->dct_quantize= dct_quantize_MMX;
             }
         }
+#endif
     }
 }
Index: ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c,v
retrieving revision 1.17
diff -u -u -r1.17 mpegvideo_mmx_template.c
--- ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c	13 May 2003 08:21:35 -0000	1.17
+++ ffmpeg/libavcodec/i386/mpegvideo_mmx_template.c	11 Sep 2003 19:34:47 -0000
@@ -122,7 +122,7 @@
             "movd %%mm3, %%eax			\n\t"
             "movzbl %%al, %%eax			\n\t" // last_non_zero_p1
 	    : "+a" (last_non_zero_p1)
-            : "r" (block+64), "r" (qmat), "r" (bias),
+            : "b" (block+64), "r" (qmat), "r" (bias),
               "r" (inv_zigzag_direct16+64), "r" (temp_block+64)
         );
         // note the asm is split cuz gcc doesnt like that many operands ...
Index: ffmpeg/libavformat/allformats.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/allformats.c,v
retrieving revision 1.15
diff -u -u -r1.15 allformats.c
--- ffmpeg/libavformat/allformats.c	5 Jun 2003 14:30:52 -0000	1.15
+++ ffmpeg/libavformat/allformats.c	11 Sep 2003 19:34:47 -0000
@@ -40,13 +40,13 @@
 #endif
     avienc_init();
     avidec_init();
-    wav_init();
+    avf_wav_init();
     swf_init();
     au_init();
     gif_init();
     mov_init();
     jpeg_init();
-    dv_init();
+    avf_dv_init();
     fourxm_init();
 
 #ifdef AMR_NB
Index: ffmpeg/libavformat/avformat.h
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/avformat.h,v
retrieving revision 1.55
diff -u -u -r1.55 avformat.h
--- ffmpeg/libavformat/avformat.h	4 Jul 2003 23:48:20 -0000	1.55
+++ ffmpeg/libavformat/avformat.h	11 Sep 2003 19:34:48 -0000
@@ -317,7 +317,7 @@
 int amr_init(void);
 
 /* wav.c */
-int wav_init(void);
+int avf_wav_init(void);
 
 /* raw.c */
 int raw_init(void);
@@ -326,7 +326,7 @@
 int ogg_init(void);
 
 /* dv.c */
-int dv_init(void);
+int avf_dv_init(void);
 
 /* ffm.c */
 int ffm_init(void);
Index: ffmpeg/libavformat/dv.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/dv.c,v
retrieving revision 1.9
diff -u -u -r1.9 dv.c
--- ffmpeg/libavformat/dv.c	23 Apr 2003 02:04:40 -0000	1.9
+++ ffmpeg/libavformat/dv.c	11 Sep 2003 19:34:48 -0000
@@ -138,7 +138,7 @@
     dv_write_trailer,
 };
 
-int dv_init(void)
+int avf_dv_init(void)
 {
     av_register_input_format(&dv_iformat);
     av_register_output_format(&dv_oformat);
Index: ffmpeg/libavformat/utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/utils.c,v
retrieving revision 1.52
diff -u -u -r1.52 utils.c
--- ffmpeg/libavformat/utils.c	4 Jul 2003 23:08:16 -0000	1.52
+++ ffmpeg/libavformat/utils.c	11 Sep 2003 19:34:52 -0000
@@ -32,6 +32,7 @@
 #include <sys/time.h>
 #endif
 #include <time.h>
+#include <stdio.h>
 
 #ifndef HAVE_STRPTIME
 #include "strptime.h"
Index: ffmpeg/libavformat/wav.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/wav.c,v
retrieving revision 1.23
diff -u -u -r1.23 wav.c
--- ffmpeg/libavformat/wav.c	12 Mar 2003 18:45:50 -0000	1.23
+++ ffmpeg/libavformat/wav.c	11 Sep 2003 19:34:52 -0000
@@ -334,7 +334,7 @@
     wav_write_trailer,
 };
 
-int wav_init(void)
+int avf_wav_init(void)
 {
     av_register_input_format(&wav_iformat);
     av_register_output_format(&wav_oformat);