X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fframework%2Fmlt_frame.c;h=2fef7c080de63e6ac2ef088aeddba86f6c77f62f;hb=62b1b24b4dab2b17c3ec052955584f9070c77865;hp=314facdb53a2dbbc9bfad4401cc9938cfdc04362;hpb=281579567f77944a2130b00e91ca8b8142df6e0b;p=melted diff --git a/src/framework/mlt_frame.c b/src/framework/mlt_frame.c index 314facd..2fef7c0 100644 --- a/src/framework/mlt_frame.c +++ b/src/framework/mlt_frame.c @@ -416,6 +416,10 @@ void mlt_resize_yuv422( uint8_t *output, int owidth, int oheight, uint8_t *input iheight = iheight - ( iheight % 2 ); oheight = oheight - ( oheight % 2 ); + // Optimisation point + if ( iwidth == owidth && iheight == oheight ) + memcpy( output, input, iheight * istride ); + // Coordinates (0,0 is middle of output) int y;