changeset 10312:b71452194fff

fixing "internal error in orderYUV" bug
author michael
date Thu, 19 Jun 2003 21:28:56 +0000
parents 87043624b0d8
children b479b224d435
files postproc/swscale.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/postproc/swscale.c	Thu Jun 19 18:26:13 2003 +0000
+++ b/postproc/swscale.c	Thu Jun 19 21:28:56 2003 +0000
@@ -1466,7 +1466,7 @@
 		sortedStride[1]= stride[2];
 		sortedStride[2]= stride[1];
 	}
-	else if(isPacked(format) || isGray(format))
+	else if(isPacked(format) || isGray(format) || format == IMGFMT_Y8)
 	{
 		sortedP[0]= p[0];
 		sortedP[1]= 
@@ -2096,6 +2096,7 @@
 	sws_orderYUV(c->origSrcFormat, src, srcStride, srcParam, srcStrideParam);
 	sws_orderYUV(c->origDstFormat, dst, dstStride, dstParam, dstStrideParam);
 //printf("sws: slice %d %d\n", srcSliceY, srcSliceH);
+
 	return c->swScale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride);
 }