]> git.pld-linux.org Git - packages/transcode.git/blame - transcode-gcc34.patch
- bcond_with(out) is followed by one \t, then bcond's name.
[packages/transcode.git] / transcode-gcc34.patch
CommitLineData
455e7e7f 1Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org>
2Date: 2004-09-04
3Initial Package Version: 0.6.12
4Upstream Status: Not submitted
5Origin: Randy McMurchy
6Description: Fixes GCC-3.4 related build problems
7
8$LastChangedBy: randy $
9$Date$
10
11diff -Naur transcode-0.6.12-orig/filter/subtitler/frame_list.c transcode-0.6.12/filter/subtitler/frame_list.c
12--- transcode-0.6.12-orig/filter/subtitler/frame_list.c 2004-01-05 13:12:55.000000000 +0000
13+++ transcode-0.6.12/filter/subtitler/frame_list.c 2004-09-05 02:17:32.368562264 +0000
14@@ -33,7 +33,8 @@
15
16 char *strsave(char *s) /*save char array s somewhere*/
17 {
18-char *p, *malloc();
19+/* char *p, *malloc(); */
20+char *p;
21 if(p = malloc( strlen(s) + 1) ) strcpy(p, s);
22 return(p);
23 }
24
25diff -Naur transcode-0.6.12-orig/ffmpeg/libavcodec/i386/simple_idct_mmx.c transcode-0.6.12/ffmpeg/libavcodec/i386/simple_idct_mmx.c
26--- transcode-0.6.12-orig/ffmpeg/libavcodec/i386/simple_idct_mmx.c 2003-12-20 11:49:12.000000000 +0000
27+++ transcode-0.6.12/ffmpeg/libavcodec/i386/simple_idct_mmx.c 2004-09-05 02:04:32.318147952 +0000
28@@ -45,10 +45,10 @@
29 #define ROW_SHIFT 11
30 #define COL_SHIFT 20 // 6
31
32-static const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
33-static const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
34+const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;
35+const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;
36
37-static const int16_t __attribute__((aligned(8))) coeffs[]= {
38+const int16_t __attribute__((aligned(8))) coeffs[]= {
39 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0,
40 // 1<<(COL_SHIFT-1), 0, 1<<(COL_SHIFT-1), 0,
41 // 0, 1<<(COL_SHIFT-1-16), 0, 1<<(COL_SHIFT-1-16),
42
43diff -Naur transcode-0.6.12-orig/ffmpeg/libavcodec/i386/motion_est_mmx.c transcode-0.6.12/ffmpeg/libavcodec/i386/motion_est_mmx.c
44--- transcode-0.6.12-orig/ffmpeg/libavcodec/i386/motion_est_mmx.c 2003-12-30 10:02:10.000000000 +0000
45+++ transcode-0.6.12/ffmpeg/libavcodec/i386/motion_est_mmx.c 2004-09-05 02:06:37.490118920 +0000
46@@ -20,13 +20,13 @@
47 */
48 #include "../dsputil.h"
49
50-static const __attribute__ ((aligned(8))) uint64_t round_tab[3]={
51+const __attribute__ ((aligned(8))) uint64_t round_tab[3]={
52 0x0000000000000000ULL,
53 0x0001000100010001ULL,
54 0x0002000200020002ULL,
55 };
56
57-static __attribute__ ((aligned(8), unused)) uint64_t bone= 0x0101010101010101LL;
58+const __attribute__ ((aligned(8), unused)) uint64_t bone= 0x0101010101010101LL;
59
60 static inline void sad8_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h)
61 {
62
63diff -Naur transcode-0.6.12-orig/ffmpeg/libavcodec/i386/dsputil_mmx.c transcode-0.6.12/ffmpeg/libavcodec/i386/dsputil_mmx.c
64--- transcode-0.6.12-orig/ffmpeg/libavcodec/i386/dsputil_mmx.c 2003-12-30 10:02:10.000000000 +0000
65+++ transcode-0.6.12/ffmpeg/libavcodec/i386/dsputil_mmx.c 2004-09-05 02:08:27.098455920 +0000
66@@ -27,16 +27,16 @@
67 int mm_flags; /* multimedia extension flags */
68
69 /* pixel operations */
70-static const uint64_t mm_bone __attribute__ ((aligned(8))) = 0x0101010101010101ULL;
71-static const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;
72-static const uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL;
73-
74-static const uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
75-static const uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
76-static const uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL;
77-static const uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL;
78+const uint64_t mm_bone __attribute__ ((aligned(8))) = 0x0101010101010101ULL;
79+const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;
80+const uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL;
81+
82+const uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL;
83+const uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL;
84+const uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL;
85+const uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL;
86
87-static const uint64_t ff_pb_FC __attribute__ ((aligned(8))) = 0xFCFCFCFCFCFCFCFCULL;
88+const uint64_t ff_pb_FC __attribute__ ((aligned(8))) = 0xFCFCFCFCFCFCFCFCULL;
89
90 #define JUMPALIGN() __asm __volatile (".balign 8"::)
91 #define MOVQ_ZERO(regd) __asm __volatile ("pxor %%" #regd ", %%" #regd ::)
This page took 0.035683 seconds and 4 git commands to generate.