Mercurial > mplayer.hg
annotate libmpcodecs/vd_realvid.c @ 29154:d26f4b307224
Introduce ADD_ALL_DIRS function to factorize clean and distclean target commands
to remove certain patterns in all subdirectories.
author | diego |
---|---|
date | Sun, 19 Apr 2009 15:51:06 +0000 |
parents | b9da026ee222 |
children | 0f1b5b68af32 |
rev | line source |
---|---|
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
1 #include <stdio.h> |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
2 #include <stdlib.h> |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
3 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
4 #include "config.h" |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
5 |
10093 | 6 #ifdef HAVE_LIBDL |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
7 #include <dlfcn.h> |
10093 | 8 #endif |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
9 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
10 #include "mp_msg.h" |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
11 #include "help_mp.h" |
28468
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
12 #include "mpbswap.h" |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
13 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
14 #include "vd_internal.h" |
22577
a033e5519802
Include loader/ prefix in #include path everywhere.
diego
parents:
21563
diff
changeset
|
15 #include "loader/wine/windef.h" |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
16 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
17 static vd_info_t info = { |
6404
83b3315c679b
Implement Nilmoni's and Bernd Ernesti's patches for:
atmos4
parents:
6361
diff
changeset
|
18 "RealVideo decoder", |
7174 | 19 "realvid", |
12628
985e1813e298
support for realvideo codecs under macosx, original patch by Donnie Smith
alex
parents:
12356
diff
changeset
|
20 "Alex Beregszaszi", |
985e1813e298
support for realvideo codecs under macosx, original patch by Donnie Smith
alex
parents:
12356
diff
changeset
|
21 "Florian Schneider, Arpad Gereoffy, Alex Beregszaszi, Donnie Smith", |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
22 "binary real video codecs" |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
23 }; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
24 |
7174 | 25 LIBVD_EXTERN(realvid) |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
26 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
27 |
8522 | 28 /* |
29 * Structures for data packets. These used to be tables of unsigned ints, but | |
30 * that does not work on 64 bit platforms (e.g. Alpha). The entries that are | |
31 * pointers get truncated. Pointers on 64 bit platforms are 8 byte longs. | |
32 * So we have to use structures so the compiler will assign the proper space | |
33 * for the pointer. | |
34 */ | |
35 typedef struct cmsg_data_s { | |
36 uint32_t data1; | |
37 uint32_t data2; | |
38 uint32_t* dimensions; | |
39 } cmsg_data_t; | |
40 | |
41 typedef struct transform_in_s { | |
42 uint32_t len; | |
43 uint32_t unknown1; | |
44 uint32_t chunks; | |
45 uint32_t* extra; | |
46 uint32_t unknown2; | |
47 uint32_t timestamp; | |
48 } transform_in_t; | |
49 | |
50 static unsigned long (*rvyuv_custom_message)(cmsg_data_t* ,void*); | |
7728 | 51 static unsigned long (*rvyuv_free)(void*); |
52 static unsigned long (*rvyuv_init)(void*, void*); // initdata,context | |
8522 | 53 static unsigned long (*rvyuv_transform)(char*, char*,transform_in_t*,unsigned int*,void*); |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
54 #ifdef CONFIG_WIN32DLL |
8525 | 55 static unsigned long WINAPI (*wrvyuv_custom_message)(cmsg_data_t* ,void*); |
56 static unsigned long WINAPI (*wrvyuv_free)(void*); | |
57 static unsigned long WINAPI (*wrvyuv_init)(void*, void*); // initdata,context | |
58 static unsigned long WINAPI (*wrvyuv_transform)(char*, char*,transform_in_t*,unsigned int*,void*); | |
59 #endif | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
60 |
7728 | 61 static void *rv_handle=NULL; |
25962 | 62 static int initialized=0; |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
63 static uint8_t *buffer = NULL; |
21563
c08b8066a1c6
Only increase buffer size to avoid crashes when seeking in
reimar
parents:
21559
diff
changeset
|
64 static int bufsz = 0; |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
65 #ifdef CONFIG_WIN32DLL |
8525 | 66 static int dll_type = 0; /* 0 = unix dlopen, 1 = win32 dll */ |
67 #endif | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
68 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
69 void *__builtin_vec_new(unsigned long size) { |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
70 return malloc(size); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
71 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
72 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
73 void __builtin_vec_delete(void *mem) { |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
74 free(mem); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
75 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
76 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
77 void __pure_virtual(void) { |
6361 | 78 printf("FATAL: __pure_virtual() called!\n"); |
79 // exit(1); | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
80 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
81 |
15566 | 82 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) |
6361 | 83 void ___brk_addr(void) {exit(0);} |
6404
83b3315c679b
Implement Nilmoni's and Bernd Ernesti's patches for:
atmos4
parents:
6361
diff
changeset
|
84 char **__environ={NULL}; |
6361 | 85 #undef stderr |
6404
83b3315c679b
Implement Nilmoni's and Bernd Ernesti's patches for:
atmos4
parents:
6361
diff
changeset
|
86 FILE *stderr=NULL; |
6361 | 87 #endif |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
88 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
89 // to set/get/query special features/parameters |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
90 static int control(sh_video_t *sh,int cmd,void* arg,...){ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
91 // switch(cmd){ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
92 // case VDCTRL_QUERY_MAX_PP_LEVEL: |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
93 // return 9; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
94 // case VDCTRL_SET_PP_LEVEL: |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
95 // vfw_set_postproc(sh,10*(*((int*)arg))); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
96 // return CONTROL_OK; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
97 // } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
98 return CONTROL_UNKNOWN; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
99 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
100 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
101 /* exits program when failure */ |
10093 | 102 #ifdef HAVE_LIBDL |
7728 | 103 static int load_syms_linux(char *path) { |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
104 void *handle; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
105 |
17721
7b336a5585e4
Reduce Real DLL/so loading verbosity, OKed by Roberto.
diego
parents:
17012
diff
changeset
|
106 mp_msg(MSGT_DECVIDEO,MSGL_V, "opening shared obj '%s'\n", path); |
9386 | 107 handle = dlopen (path, RTLD_LAZY); |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
108 if (!handle) { |
6361 | 109 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error: %s\n",dlerror()); |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
110 return 0; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
111 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
112 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
113 rvyuv_custom_message = dlsym(handle, "RV20toYUV420CustomMessage"); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
114 rvyuv_free = dlsym(handle, "RV20toYUV420Free"); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
115 rvyuv_init = dlsym(handle, "RV20toYUV420Init"); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
116 rvyuv_transform = dlsym(handle, "RV20toYUV420Transform"); |
6361 | 117 |
118 if(rvyuv_custom_message && | |
119 rvyuv_free && | |
120 rvyuv_init && | |
9386 | 121 rvyuv_transform) |
122 { | |
123 rv_handle = handle; | |
124 return 1; | |
125 } | |
13860
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
126 |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
127 rvyuv_custom_message = dlsym(handle, "RV40toYUV420CustomMessage"); |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
128 rvyuv_free = dlsym(handle, "RV40toYUV420Free"); |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
129 rvyuv_init = dlsym(handle, "RV40toYUV420Init"); |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
130 rvyuv_transform = dlsym(handle, "RV40toYUV420Transform"); |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
131 |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
132 if(rvyuv_custom_message && |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
133 rvyuv_free && |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
134 rvyuv_init && |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
135 rvyuv_transform) |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
136 { |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
137 rv_handle = handle; |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
138 return 1; |
d6f716fdd734
remove mac shlb support to use new helix codec for realvideo support on osx
nplourde
parents:
12628
diff
changeset
|
139 } |
6361 | 140 |
141 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error resolving symbols! (version incompatibility?)\n"); | |
9386 | 142 dlclose(handle); |
6361 | 143 return 0; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
144 } |
10093 | 145 #endif |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
146 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
147 #ifdef CONFIG_WIN32DLL |
7127 | 148 |
10093 | 149 #ifdef WIN32_LOADER |
17012 | 150 #include "loader/ldt_keeper.h" |
10093 | 151 #endif |
8525 | 152 void* WINAPI LoadLibraryA(char* name); |
153 void* WINAPI GetProcAddress(void* handle,char* func); | |
154 int WINAPI FreeLibrary(void *handle); | |
7127 | 155 |
24087
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
156 #ifndef WIN32_LOADER |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
157 void * WINAPI GetModuleHandleA(char *); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
158 static int patch_dll(uint8_t *patchpos, const uint8_t *oldcode, |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
159 const uint8_t *newcode, int codesize) { |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
160 void *handle = GetModuleHandleA("kernel32"); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
161 int WINAPI (*VirtProt)(void *, unsigned, int, int *); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
162 int res = 0; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
163 int prot, tmp; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
164 VirtProt = GetProcAddress(handle, "VirtualProtect"); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
165 // change permissions to PAGE_WRITECOPY |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
166 if (!VirtProt || |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
167 !VirtProt(patchpos, codesize, 0x08, &prot)) { |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
168 mp_msg(MSGT_DECVIDEO, MSGL_WARN, "VirtualProtect failed at %p\n", patchpos); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
169 return 0; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
170 } |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
171 if (memcmp(patchpos, oldcode, codesize) == 0) { |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
172 memcpy(patchpos, newcode, codesize); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
173 res = 1; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
174 } |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
175 VirtProt(patchpos, codesize, prot, &tmp); |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
176 return res; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
177 } |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
178 #endif |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
179 |
7728 | 180 static int load_syms_windows(char *path) { |
6360 | 181 void *handle; |
8525 | 182 |
17721
7b336a5585e4
Reduce Real DLL/so loading verbosity, OKed by Roberto.
diego
parents:
17012
diff
changeset
|
183 mp_msg(MSGT_DECVIDEO,MSGL_V, "opening win32 dll '%s'\n", path); |
10093 | 184 #ifdef WIN32_LOADER |
6360 | 185 Setup_LDT_Keeper(); |
10093 | 186 #endif |
9386 | 187 handle = LoadLibraryA(path); |
6361 | 188 mp_msg(MSGT_DECVIDEO,MSGL_V,"win32 real codec handle=%p \n",handle); |
8525 | 189 if (!handle) { |
190 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error loading dll\n"); | |
191 return 0; | |
192 } | |
6360 | 193 |
8525 | 194 wrvyuv_custom_message = GetProcAddress(handle, "RV20toYUV420CustomMessage"); |
195 wrvyuv_free = GetProcAddress(handle, "RV20toYUV420Free"); | |
196 wrvyuv_init = GetProcAddress(handle, "RV20toYUV420Init"); | |
197 wrvyuv_transform = GetProcAddress(handle, "RV20toYUV420Transform"); | |
9386 | 198 |
8525 | 199 if(wrvyuv_custom_message && |
200 wrvyuv_free && | |
201 wrvyuv_init && | |
9386 | 202 wrvyuv_transform) |
203 { | |
204 dll_type = 1; | |
205 rv_handle = handle; | |
24087
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
206 #ifndef WIN32_LOADER |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
207 { |
26389
b65cf3a35900
Oops...should be "drv43260.dll" instead of "drv34260.dll"
zuxy
parents:
26388
diff
changeset
|
208 if (strstr(path, "drv43260.dll")) { |
26385
3d02fa79ae6c
Don't print "Could not patch" messages when we haven't actually tried to patch.
zuxy
parents:
26384
diff
changeset
|
209 int patched; |
24087
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
210 // patch away multithreaded decoding, it causes crashes |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
211 static const uint8_t oldcode[13] = { |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
212 0x83, 0xbb, 0xf8, 0x05, 0x00, 0x00, 0x01, |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
213 0x0f, 0x86, 0xd0, 0x00, 0x00, 0x00 }; |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
214 static const uint8_t newcode[13] = { |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
215 0x31, 0xc0, |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
216 0x89, 0x83, 0xf8, 0x05, 0x00, 0x00, |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
217 0xe9, 0xd0, 0x00, 0x00, 0x00 }; |
26388 | 218 patched = patch_dll( |
219 (char*)wrvyuv_transform + 0x634132fa - 0x634114d0, | |
220 oldcode, newcode, sizeof(oldcode)); | |
26386 | 221 if (!patched) |
222 mp_msg(MSGT_DECVIDEO, MSGL_WARN, "Could not patch Real codec, this might crash on multi-CPU systems\n"); | |
26385
3d02fa79ae6c
Don't print "Could not patch" messages when we haven't actually tried to patch.
zuxy
parents:
26384
diff
changeset
|
223 } |
24087
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
224 } |
5992f8a979e3
Runtime-patching for windows to fix crash with drv43260.dll
reimar
parents:
22577
diff
changeset
|
225 #endif |
9386 | 226 return 1; |
227 } | |
26384 | 228 |
229 wrvyuv_custom_message = GetProcAddress(handle, "RV40toYUV420CustomMessage"); | |
230 wrvyuv_free = GetProcAddress(handle, "RV40toYUV420Free"); | |
231 wrvyuv_init = GetProcAddress(handle, "RV40toYUV420Init"); | |
232 wrvyuv_transform = GetProcAddress(handle, "RV40toYUV420Transform"); | |
233 if(wrvyuv_custom_message && | |
234 wrvyuv_free && | |
235 wrvyuv_init && | |
26398 | 236 wrvyuv_transform) { |
237 dll_type = 1; | |
238 rv_handle = handle; | |
26384 | 239 return 1; |
26398 | 240 } |
26384 | 241 |
8525 | 242 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"Error resolving symbols! (version incompatibility?)\n"); |
9386 | 243 FreeLibrary(handle); |
6360 | 244 return 0; // error |
245 } | |
246 #endif | |
247 | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
248 /* we need exact positions */ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
249 struct rv_init_t { |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
250 short unk1; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
251 short w; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
252 short h; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
253 short unk3; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
254 int unk2; |
6345 | 255 int subformat; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
256 int unk5; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
257 int format; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
258 } rv_init_t; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
259 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
260 // init driver |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
261 static int init(sh_video_t *sh){ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
262 //unsigned int out_fmt; |
10102 | 263 char *path; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
264 int result; |
6345 | 265 // we export codec id and sub-id from demuxer in bitmapinfohdr: |
20920 | 266 unsigned char* extrahdr=(unsigned char*)(sh->bih+1); |
267 unsigned int extrahdr_size = sh->bih->biSize - sizeof(BITMAPINFOHEADER); | |
268 struct rv_init_t init_data; | |
6345 | 269 |
20920 | 270 if(extrahdr_size < 8) { |
271 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"realvideo: extradata too small (%u)\n", sh->bih->biSize - sizeof(BITMAPINFOHEADER)); | |
272 return 0; | |
273 } | |
274 init_data = (struct rv_init_t){11, sh->disp_w, sh->disp_h, 0, 0, be2me_32(((unsigned int*)extrahdr)[0]), 1, be2me_32(((unsigned int*)extrahdr)[1])}; // rv30 | |
275 | |
276 mp_msg(MSGT_DECVIDEO,MSGL_V,"realvideo codec id: 0x%08X sub-id: 0x%08X\n",be2me_32(((unsigned int*)extrahdr)[1]),be2me_32(((unsigned int*)extrahdr)[0])); | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
277 |
10102 | 278 path = malloc(strlen(REALCODEC_PATH)+strlen(sh->codec->dll)+2); |
279 if (!path) return 0; | |
6404
83b3315c679b
Implement Nilmoni's and Bernd Ernesti's patches for:
atmos4
parents:
6361
diff
changeset
|
280 sprintf(path, REALCODEC_PATH "/%s", sh->codec->dll); |
6543
70a9c9f695a2
first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones
alex
parents:
6404
diff
changeset
|
281 |
70a9c9f695a2
first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones
alex
parents:
6404
diff
changeset
|
282 /* first try to load linux dlls, if failed and we're supporting win32 dlls, |
70a9c9f695a2
first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones
alex
parents:
6404
diff
changeset
|
283 then try to load the windows ones */ |
10093 | 284 #ifdef HAVE_LIBDL |
285 if(strstr(sh->codec->dll,".dll") || !load_syms_linux(path)) | |
286 #endif | |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
287 #ifdef CONFIG_WIN32DLL |
10444 | 288 if (!load_syms_windows(sh->codec->dll)) |
6543
70a9c9f695a2
first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones
alex
parents:
6404
diff
changeset
|
289 #endif |
70a9c9f695a2
first try to load linux dlls, if failed and we're supporting win32 dlls, then try to load the windows ones
alex
parents:
6404
diff
changeset
|
290 { |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
291 mp_msg(MSGT_DECVIDEO,MSGL_ERR,MSGTR_MissingDLLcodec,sh->codec->dll); |
9386 | 292 mp_msg(MSGT_DECVIDEO,MSGL_HINT,"Read the RealVideo section of the DOCS!\n"); |
10102 | 293 free(path); |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
294 return 0; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
295 } |
10102 | 296 free(path); |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
297 // only I420 supported |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
298 // if((sh->format!=0x30335652) && !mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_I420)) return 0; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
299 // init codec: |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
300 sh->context=NULL; |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
301 #ifdef CONFIG_WIN32DLL |
8525 | 302 if (dll_type == 1) |
303 result=(*wrvyuv_init)(&init_data, &sh->context); | |
304 else | |
305 #endif | |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
306 result=(*rvyuv_init)(&init_data, &sh->context); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
307 if (result){ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
308 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Couldn't open RealVideo codec, error code: 0x%X \n",result); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
309 return 0; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
310 } |
6345 | 311 // setup rv30 codec (codec sub-type and image dimensions): |
20920 | 312 if((sh->format<=0x30335652) && (be2me_32(((unsigned int*)extrahdr)[1])>=0x20200002)){ |
313 int i, cmsg_cnt; | |
314 uint32_t cmsg24[16]={sh->disp_w,sh->disp_h}; | |
315 cmsg_data_t cmsg_data={0x24,1+(extrahdr[1]&7), &cmsg24[0]}; | |
316 | |
317 mp_msg(MSGT_DECVIDEO,MSGL_V,"realvideo: using cmsg24 with %u elements.\n",extrahdr[1]&7); | |
318 cmsg_cnt = (extrahdr[1]&7)*2; | |
319 if (extrahdr_size-8 < cmsg_cnt) { | |
320 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"realvideo: not enough extradata (%u) to make %u cmsg24 elements.\n",extrahdr_size-8,extrahdr[1]&7); | |
321 cmsg_cnt = extrahdr_size-8; | |
322 } | |
323 for (i = 0; i < cmsg_cnt; i++) | |
324 cmsg24[2+i] = extrahdr[8+i]*4; | |
325 if (extrahdr_size-8 > cmsg_cnt) | |
326 mp_msg(MSGT_DECVIDEO,MSGL_WARN,"realvideo: %u bytes of unknown extradata remaining.\n",extrahdr_size-8-cmsg_cnt); | |
8525 | 327 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
328 #ifdef CONFIG_WIN32DLL |
8525 | 329 if (dll_type == 1) |
330 (*wrvyuv_custom_message)(&cmsg_data,sh->context); | |
331 else | |
332 #endif | |
8522 | 333 (*rvyuv_custom_message)(&cmsg_data,sh->context); |
6345 | 334 } |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
335 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: RealVideo codec init OK!\n"); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
336 return 1; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
337 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
338 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
339 // uninit driver |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
340 static void uninit(sh_video_t *sh){ |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
341 #ifdef CONFIG_WIN32DLL |
8525 | 342 if (dll_type == 1) |
343 { | |
344 if (wrvyuv_free) wrvyuv_free(sh->context); | |
345 } else | |
346 #endif | |
7728 | 347 if(rvyuv_free) rvyuv_free(sh->context); |
8525 | 348 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
349 #ifdef CONFIG_WIN32DLL |
8525 | 350 if (dll_type == 1) |
351 { | |
352 if (rv_handle) FreeLibrary(rv_handle); | |
353 } else | |
354 #endif | |
10093 | 355 #ifdef HAVE_LIBDL |
6345 | 356 if(rv_handle) dlclose(rv_handle); |
10093 | 357 #endif |
6345 | 358 rv_handle=NULL; |
25962 | 359 initialized = 0; |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
360 if (buffer) |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
361 free(buffer); |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
362 buffer = NULL; |
21563
c08b8066a1c6
Only increase buffer size to avoid crashes when seeking in
reimar
parents:
21559
diff
changeset
|
363 bufsz = 0; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
364 } |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
365 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
366 // decode a frame |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
367 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
368 mp_image_t* mpi; |
6745
9734bfbb200a
Avoid ulong typedef clash and replace if by unsigned long, patch by Joey Parrish.
atmos4
parents:
6544
diff
changeset
|
369 unsigned long result; |
28468
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
370 uint8_t *buf = data; |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
371 int chunks = *buf++; |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
372 int extra_size = 8*(chunks+1); |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
373 uint32_t data_size = len-1-extra_size; |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
374 unsigned char* dp_data=buf+extra_size; |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
375 uint32_t* extra=(uint32_t*)buf; |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
376 int i; |
7082 | 377 |
8522 | 378 unsigned int transform_out[5]; |
379 transform_in_t transform_in={ | |
28468
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
380 data_size, // length of the packet (sub-packets appended) |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
381 0, // unknown, seems to be unused |
28468
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
382 chunks, // number of sub-packets - 1 |
8522 | 383 extra, // table of sub-packet offsets |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
384 0, // unknown, seems to be unused |
25598 | 385 0, // timestamp (should be unneded) |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
386 }; |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
387 |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
388 if(len<=0 || flags&2) return NULL; // skipped frame || hardframedrop |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
389 |
21563
c08b8066a1c6
Only increase buffer size to avoid crashes when seeking in
reimar
parents:
21559
diff
changeset
|
390 if (bufsz < sh->disp_w*sh->disp_h*3/2) { |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
391 if (buffer) free(buffer); |
21563
c08b8066a1c6
Only increase buffer size to avoid crashes when seeking in
reimar
parents:
21559
diff
changeset
|
392 bufsz = sh->disp_w*sh->disp_h*3/2; |
c08b8066a1c6
Only increase buffer size to avoid crashes when seeking in
reimar
parents:
21559
diff
changeset
|
393 buffer=malloc(bufsz); |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
394 if (!buffer) return 0; |
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
395 } |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
396 |
28468
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
397 for (i=0; i<2*(chunks+1); i++) |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
398 extra[i] = le2me_32(extra[i]); |
b9da026ee222
change internal real video packetizing format to the more straight forward one
aurel
parents:
27341
diff
changeset
|
399 |
27341
e7c989f7a7c9
Start unifying names of internal preprocessor directives.
diego
parents:
26754
diff
changeset
|
400 #ifdef CONFIG_WIN32DLL |
8525 | 401 if (dll_type == 1) |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
402 result=(*wrvyuv_transform)(dp_data, buffer, &transform_in, |
8525 | 403 transform_out, sh->context); |
404 else | |
405 #endif | |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
406 result=(*rvyuv_transform)(dp_data, buffer, &transform_in, |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
407 transform_out, sh->context); |
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
408 |
25962 | 409 if(!initialized){ // rv30 width/height now known |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
410 sh->aspect=(float)sh->disp_w/(float)sh->disp_h; |
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
411 sh->disp_w=transform_out[3]; |
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
412 sh->disp_h=transform_out[4]; |
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
413 if (!mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_I420)) return 0; |
25962 | 414 initialized=1; |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
415 } |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
416 mpi=mpcodecs_get_image(sh, MP_IMGTYPE_EXPORT, 0 /*MP_IMGFLAG_ACCEPT_STRIDE*/, |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
417 sh->disp_w, sh->disp_h); |
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
418 if(!mpi) return NULL; |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
419 mpi->planes[0] = buffer; |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
420 mpi->stride[0] = sh->disp_w; |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
421 mpi->planes[1] = buffer + sh->disp_w*sh->disp_h; |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
422 mpi->stride[1] = sh->disp_w / 2; |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
423 mpi->planes[2] = buffer + sh->disp_w*sh->disp_h*5/4; |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
424 mpi->stride[2] = sh->disp_w / 2; |
9552
86b5ea6396ab
Ugly hack to handle bad width/height values from stream header
arpi
parents:
9386
diff
changeset
|
425 |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
426 if(transform_out[0] && |
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
427 (sh->disp_w != transform_out[3] || sh->disp_h != transform_out[4])) |
25962 | 428 initialized = 0; |
21559
de2a96f41195
Fix realvideo size changes by using our own malloced buffer and export type mpi.
reimar
parents:
21466
diff
changeset
|
429 |
26754
63630c09e237
cosmetics: Remove pointless parentheses from return calls.
diego
parents:
26398
diff
changeset
|
430 return result ? NULL : mpi; |
6341
d79c52610702
RealVideo rv30 decoder, using binary driver from realplayer8
arpi
parents:
diff
changeset
|
431 } |