Commit 60fc9fbd authored by michael's avatar michael

fixing "internal error in orderYUV" bug


git-svn-id: file:///var/local/repositories/mplayer/trunk/postproc@10313 b3059339-0415-0410-9bf9-f77b7e298cf2
parent c9cedb54
...@@ -1466,7 +1466,7 @@ static inline void sws_orderYUV(int format, uint8_t * sortedP[], int sortedStrid ...@@ -1466,7 +1466,7 @@ static inline void sws_orderYUV(int format, uint8_t * sortedP[], int sortedStrid
sortedStride[1]= stride[2]; sortedStride[1]= stride[2];
sortedStride[2]= stride[1]; sortedStride[2]= stride[1];
} }
else if(isPacked(format) || isGray(format)) else if(isPacked(format) || isGray(format) || format == IMGFMT_Y8)
{ {
sortedP[0]= p[0]; sortedP[0]= p[0];
sortedP[1]= sortedP[1]=
...@@ -2096,6 +2096,7 @@ int sws_scale(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[], int srcS ...@@ -2096,6 +2096,7 @@ int sws_scale(SwsContext *c, uint8_t* srcParam[], int srcStrideParam[], int srcS
sws_orderYUV(c->origSrcFormat, src, srcStride, srcParam, srcStrideParam); sws_orderYUV(c->origSrcFormat, src, srcStride, srcParam, srcStrideParam);
sws_orderYUV(c->origDstFormat, dst, dstStride, dstParam, dstStrideParam); sws_orderYUV(c->origDstFormat, dst, dstStride, dstParam, dstStrideParam);
//printf("sws: slice %d %d\n", srcSliceY, srcSliceH); //printf("sws: slice %d %d\n", srcSliceY, srcSliceH);
return c->swScale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride); return c->swScale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment