comparison libmpcodecs/vd_realvid.c @ 14568:bfdec335c4d4

Play RV30 with 8-elements cmsg24 Fixes rv30_cmsg24_test.rmvb (now in samples)
author rtognimp
date Sat, 22 Jan 2005 00:06:59 +0000
parents 37b3dd217cdf
children 3758536dcef3
comparison
equal deleted inserted replaced
14567:f525cb411927 14568:bfdec335c4d4
251 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Couldn't open RealVideo codec, error code: 0x%X \n",result); 251 mp_msg(MSGT_DECVIDEO,MSGL_ERR,"Couldn't open RealVideo codec, error code: 0x%X \n",result);
252 return 0; 252 return 0;
253 } 253 }
254 // setup rv30 codec (codec sub-type and image dimensions): 254 // setup rv30 codec (codec sub-type and image dimensions):
255 if((sh->format<=0x30335652) && (extrahdr[1]>=0x20200002)){ 255 if((sh->format<=0x30335652) && (extrahdr[1]>=0x20200002)){
256 uint32_t cmsg24[4]={sh->disp_w,sh->disp_h,((unsigned short *)extrahdr)[4],((unsigned short *)extrahdr)[5]}; 256 // We could read nonsense data while filling this, but input is big enough so no sig11
257 uint32_t cmsg24[8]={sh->disp_w,sh->disp_h,((unsigned char *)extrahdr)[8]*4,((unsigned char *)extrahdr)[9]*4,
258 ((unsigned char *)extrahdr)[10]*4,((unsigned char *)extrahdr)[11]*4,
259 ((unsigned char *)extrahdr)[12]*4,((unsigned char *)extrahdr)[13]*4};
257 cmsg_data_t cmsg_data={0x24,1+((extrahdr[0]>>16)&7), &cmsg24[0]}; 260 cmsg_data_t cmsg_data={0x24,1+((extrahdr[0]>>16)&7), &cmsg24[0]};
258 261
259 #ifdef USE_WIN32DLL 262 #ifdef USE_WIN32DLL
260 if (dll_type == 1) 263 if (dll_type == 1)
261 (*wrvyuv_custom_message)(&cmsg_data,sh->context); 264 (*wrvyuv_custom_message)(&cmsg_data,sh->context);