comparison libmpcodecs/vd_realvid.c @ 7557:f296ff05bcd0

warning fixes
author arpi
date Sun, 29 Sep 2002 19:19:31 +0000
parents c4434bdf6e51
children 64b5604195c5
comparison
equal deleted inserted replaced
7556:85c8a8a8f4fd 7557:f296ff05bcd0
166 return 0; 166 return 0;
167 } 167 }
168 // setup rv30 codec (codec sub-type and image dimensions): 168 // setup rv30 codec (codec sub-type and image dimensions):
169 if(extrahdr[1]>=0x20200002){ 169 if(extrahdr[1]>=0x20200002){
170 unsigned long cmsg24[4]={sh->disp_w,sh->disp_h,sh->disp_w,sh->disp_h}; 170 unsigned long cmsg24[4]={sh->disp_w,sh->disp_h,sh->disp_w,sh->disp_h};
171 unsigned long cmsg_data[3]={0x24,1+((extrahdr[0]>>16)&7),&cmsg24}; 171 unsigned long cmsg_data[3]={0x24,1+((extrahdr[0]>>16)&7),(unsigned long) &cmsg24};
172 (*rvyuv_custom_message)(cmsg_data,sh->context); 172 (*rvyuv_custom_message)(cmsg_data,sh->context);
173 } 173 }
174 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: RealVideo codec init OK!\n"); 174 mp_msg(MSGT_DECVIDEO,MSGL_V,"INFO: RealVideo codec init OK!\n");
175 return 1; 175 return 1;
176 } 176 }
200 unsigned long transform_out[5]; 200 unsigned long transform_out[5];
201 unsigned long transform_in[6]={ 201 unsigned long transform_in[6]={
202 dp_hdr->len, // length of the packet (sub-packets appended) 202 dp_hdr->len, // length of the packet (sub-packets appended)
203 0, // unknown, seems to be unused 203 0, // unknown, seems to be unused
204 dp_hdr->chunks, // number of sub-packets - 1 204 dp_hdr->chunks, // number of sub-packets - 1
205 extra, // table of sub-packet offsets 205 (unsigned long) extra, // table of sub-packet offsets
206 0, // unknown, seems to be unused 206 0, // unknown, seems to be unused
207 dp_hdr->timestamp,// timestamp (the integer value from the stream) 207 dp_hdr->timestamp,// timestamp (the integer value from the stream)
208 }; 208 };
209 209
210 if(len<=0 || flags&2) return NULL; // skipped frame || hardframedrop 210 if(len<=0 || flags&2) return NULL; // skipped frame || hardframedrop