1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

some fixes

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7847 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-10-22 15:55:40 +00:00
parent c88b1c67fb
commit a4aeb52659
2 changed files with 21 additions and 5 deletions

View File

@ -189,12 +189,23 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) {
*/
if(p1[0]==0x24){
#if 1
hexdump(p1[2],64);
memset(temp,0x77,16*4);
memcpy(temp,p1[2],16);
p1[2]=temp;
#endif
} else {
// return 0;
switch(p1[0]){
case 17:
if(p1[1]==1)
break;
case 18:
case 30:
case 3:
default:
return 0;
}
}
// fprintf(stderr, "ulong p2=0x%0x(%d))\n", p2, p2);
// hexdump((void*)p1, 12);
@ -230,11 +241,16 @@ ulong RV20toYUV420HiveMessage(ulong *p1,ulong p2) {
// hexdump((void*)p1, sizeof(struct init_data));
fprintf(stderr,">HIVE %d %p\n",p1[0],p1[1]);
if(p1[0]!=0) return 0;
p1[1]=0x10000000;
return 0;
fprintf(stderr,"COPY INIT DATA!\n");
// fprintf(stderr,"COPY INIT DATA!\n");
memset(h_temp,0x77,1000);
memcpy(h_temp,p1,4);
fprintf(stderr,"COPY OK!\n");
// fprintf(stderr,"COPY OK!\n");
// tic();
// result=(*rvyuvHiveMessage)(p1,p2);

View File

@ -176,9 +176,9 @@ ulong RV20toYUV420CustomMessage(ulong* p1,ulong p2) {
ulong *pp1=p1;
ulong temp[16];
fprintf(stderr, "#R# => RV20toYUV420CustomMessage(%p,%p) [%d,%d,%d] \n", p1, p2, p1[0],p1[1],p1[2]);
#if 0
#if 1
if(p1[0]==0x24){
hexdump(p1[2],64);
hexdump(p1[2],16);
memset(temp,0x77,16*4);
memcpy(temp,p1[2],16);
p1[2]=temp;