changeset 4945:b0e1dc1bba4b

workaround for CVID frames width!=0
author arpi
date Wed, 06 Mar 2002 14:27:36 +0000
parents f896676db962
children a55d56509a2c
files dec_video.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dec_video.c	Wed Mar 06 02:22:46 2002 +0000
+++ b/dec_video.c	Wed Mar 06 14:27:36 2002 +0000
@@ -470,6 +470,8 @@
  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;