2951
|
1 |
diff -u mkvtoolnix-4.3.0/lib/librmff.orig/librmff.h mkvtoolnix-4.3.0/lib/librmff/librmff.h
|
|
2 |
--- mkvtoolnix-4.3.0/lib/librmff.orig/librmff.h 2010-09-04 16:04:59.000000000 -0400
|
|
3 |
+++ mkvtoolnix-4.3.0/lib/librmff/librmff.h 2010-09-28 15:36:41.143116718 -0400
|
|
4 |
@@ -379,8 +379,14 @@
|
|
5 |
|
|
6 |
#if defined(COMP_MSC)
|
|
7 |
#pragma pack(push,1)
|
|
8 |
+#elif defined(__SUNPRO_C)
|
|
9 |
+#pragma pack(1)
|
|
10 |
+#endif
|
|
11 |
+#if defined(__SUNPRO_C)
|
|
12 |
+ typedef struct real_video_props_t {
|
|
13 |
+#else
|
|
14 |
+ typedef struct PACKED_STRUCTURE real_video_props_t {
|
|
15 |
#endif
|
|
16 |
-typedef struct PACKED_STRUCTURE real_video_props_t {
|
|
17 |
uint32_t size;
|
|
18 |
uint32_t fourcc1;
|
|
19 |
uint32_t fourcc2;
|
|
20 |
@@ -393,7 +399,11 @@
|
|
21 |
uint32_t type2;
|
|
22 |
} real_video_props_t;
|
|
23 |
|
|
24 |
+#if defined(__SUNPRO_C)
|
|
25 |
+typedef struct real_audio_v4_props_t {
|
|
26 |
+#else
|
|
27 |
typedef struct PACKED_STRUCTURE real_audio_v4_props_t {
|
|
28 |
+#endif
|
|
29 |
uint32_t fourcc1; /* '.', 'r', 'a', 0xfd */
|
|
30 |
uint16_t version1; /* 4 or 5 */
|
|
31 |
uint16_t unknown1; /* 00 00 */
|
|
32 |
@@ -416,7 +426,11 @@
|
|
33 |
uint16_t channels;
|
|
34 |
} real_audio_v4_props_t;
|
|
35 |
|
|
36 |
+#if defined(__SUNPRO_C)
|
|
37 |
+typedef struct real_audio_v5_props_t {
|
|
38 |
+#else
|
|
39 |
typedef struct PACKED_STRUCTURE real_audio_v5_props_t {
|
|
40 |
+#endif
|
|
41 |
uint32_t fourcc1; /* '.', 'r', 'a', 0xfd */
|
|
42 |
uint16_t version1; /* 4 or 5 */
|
|
43 |
uint16_t unknown1; /* 00 00 */
|
|
44 |
@@ -443,6 +457,8 @@
|
|
45 |
} real_audio_v5_props_t;
|
|
46 |
#if defined(COMP_MSC)
|
|
47 |
#pragma pack(pop)
|
|
48 |
+#elif defined(__SUNPRO_C)
|
|
49 |
+#pragma pack()
|
|
50 |
#endif
|
|
51 |
|
|
52 |
typedef struct rmff_index_entry_t {
|
|
53 |
diff -u mkvtoolnix-4.3.0/lib/librmff.orig/rmff.c mkvtoolnix-4.3.0/lib/librmff/rmff.c
|
|
54 |
--- mkvtoolnix-4.3.0/lib/librmff.orig/rmff.c 2010-09-04 16:04:59.000000000 -0400
|
|
55 |
+++ mkvtoolnix-4.3.0/lib/librmff/rmff.c 2010-10-07 18:47:49.365835394 -0400
|
|
56 |
@@ -1629,7 +1629,7 @@
|
|
57 |
return RMFF_ERR_OK;
|
|
58 |
}
|
|
59 |
|
|
60 |
-inline uint16_t
|
|
61 |
+static inline uint16_t
|
|
62 |
data_get_uint16_be(unsigned char **data,
|
|
63 |
int *len) {
|
|
64 |
(*data) += 2;
|
|
65 |
@@ -1638,7 +1638,7 @@
|
|
66 |
}
|
|
67 |
|
|
68 |
inline unsigned char
|
|
69 |
-data_get_uint8(unsigned char **data,
|
|
70 |
+static data_get_uint8(unsigned char **data,
|
|
71 |
int *len) {
|
|
72 |
(*data)++;
|
|
73 |
(*len)--;
|