X-Git-Url: https://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.0%2Fguicast%2Fxfer.C;h=c689b6b6a8b4cf3be0f7085d8b726626001cc5df;hb=0c9155dd01b6745f908e12c6a202c671a8f09514;hp=3e0e3bd24accfef298f44c7fac598453c63f803e;hpb=2d99bb8ce591f05a31464b517d85dc2bc35b2abe;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/guicast/xfer.C b/cinelerra-5.0/guicast/xfer.C index 3e0e3bd2..c689b6b6 100644 --- a/cinelerra-5.0/guicast/xfer.C +++ b/cinelerra-5.0/guicast/xfer.C @@ -104,6 +104,7 @@ void BC_Xfer::init( { // prevent bounds errors on poorly dimensioned macro pixel formats switch( in_colormodel ) { + case BC_UVY422: case BC_YUV422: in_w &= ~1; break; // 2x1 case BC_YUV420P: in_w &= ~1; in_h &= ~1; break; // 2x2 case BC_YUV422P: in_w &= ~1; break; // 2x1 @@ -111,6 +112,7 @@ void BC_Xfer::init( case BC_YUV411P: in_w &= ~3; break; // 4x1 } switch( out_colormodel ) { + case BC_UVY422: case BC_YUV422: out_w &= ~1; break; case BC_YUV420P: out_w &= ~1; out_h &= ~1; break; case BC_YUV422P: out_w &= ~1; break; @@ -165,7 +167,8 @@ void BC_Xfer::init( double hscale = (double)in_w/out_w; for( int i=0; i