From a4aeb52659d9111591745a9a6f8102d07d55103e Mon Sep 17 00:00:00 2001 From: arpi Date: Tue, 22 Oct 2002 15:55:40 +0000 Subject: [PATCH] some fixes git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7847 b3059339-0415-0410-9bf9-f77b7e298cf2 --- TOOLS/realcodecs/drv2.c | 22 +++++++++++++++++++--- TOOLS/realcodecs/drv3.c | 4 ++-- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/TOOLS/realcodecs/drv2.c b/TOOLS/realcodecs/drv2.c index ac519ec6b4..c162c5367b 100644 --- a/TOOLS/realcodecs/drv2.c +++ b/TOOLS/realcodecs/drv2.c @@ -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); diff --git a/TOOLS/realcodecs/drv3.c b/TOOLS/realcodecs/drv3.c index 5e715a2eca..1e20469ef3 100644 --- a/TOOLS/realcodecs/drv3.c +++ b/TOOLS/realcodecs/drv3.c @@ -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;