workaround for CVID frames width!=0

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4946 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-03-06 14:27:36 +00:00
parent b3ac02ee7d
commit ee449c3839
1 changed files with 2 additions and 0 deletions

View File

@ -470,6 +470,8 @@ switch(sh_video->codec->driver){
case VFM_CINEPAK: {
#ifdef USE_MP_IMAGE
sh_video->image->type=MP_IMGTYPE_STATIC;
sh_video->image->width=(sh_video->image->width+3)&(~3);
sh_video->image->height=(sh_video->image->height+3)&(~3);
#else
int bpp=((out_fmt&255)+7)/8;
sh_video->our_out_buffer_size = sh_video->disp_w*sh_video->disp_h*bpp;