Mercurial > mplayer.hg
changeset 7846:99d2902782ed
some fixes
author | arpi |
---|---|
date | Tue, 22 Oct 2002 15:55:40 +0000 |
parents | 86420d5d7283 |
children | f1e6a68a42f1 |
files | TOOLS/realcodecs/drv2.c TOOLS/realcodecs/drv3.c |
diffstat | 2 files changed, 21 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/TOOLS/realcodecs/drv2.c Tue Oct 22 15:41:41 2002 +0000 +++ b/TOOLS/realcodecs/drv2.c Tue Oct 22 15:55:40 2002 +0000 @@ -189,12 +189,23 @@ */ 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 @@ // 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);
--- a/TOOLS/realcodecs/drv3.c Tue Oct 22 15:41:41 2002 +0000 +++ b/TOOLS/realcodecs/drv3.c Tue Oct 22 15:55:40 2002 +0000 @@ -176,9 +176,9 @@ 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;