comparison libmpcodecs/vd_vfw.c @ 18004:bcd805923554

Part2 of several printf2mp_msg changes in patch from Otvos Attila oattila AT chello DOT hu with LOTS of modifications by me
author reynaldo
date Fri, 31 Mar 2006 00:15:47 +0000
parents f70772d02eaa
children a1807995e2ab
comparison
equal deleted inserted replaced
18003:9fc72c7291d5 18004:bcd805923554
301 mpi=mpcodecs_get_image(sh, 301 mpi=mpcodecs_get_image(sh,
302 (sh->codec->outflags[sh->outfmtidx] & CODECS_FLAG_STATIC) ? 302 (sh->codec->outflags[sh->outfmtidx] & CODECS_FLAG_STATIC) ?
303 MP_IMGTYPE_STATIC : MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_WIDTH, 303 MP_IMGTYPE_STATIC : MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_WIDTH,
304 sh->disp_w, sh->disp_h); 304 sh->disp_w, sh->disp_h);
305 if(!mpi){ // temporary! 305 if(!mpi){ // temporary!
306 printf("couldn't allocate image for cinepak codec\n"); 306 mp_msg(MSGT_DECVIDEO,MSGL_WARN,MSGTR_MPCODECS_CouldntAllocateImageForCinepakCodec);
307 return NULL; 307 return NULL;
308 } 308 }
309 309
310 // set stride: (trick discovered by Andreas Ackermann - thanx!) 310 // set stride: (trick discovered by Andreas Ackermann - thanx!)
311 sh->bih->biWidth=mpi->width; //mpi->stride[0]/(mpi->bpp/8); 311 sh->bih->biWidth=mpi->width; //mpi->stride[0]/(mpi->bpp/8);