Mercurial > mplayer.hg
changeset 11406:b352fe84ce64
1000l
author | michael |
---|---|
date | Thu, 06 Nov 2003 23:22:17 +0000 |
parents | 8b62788d4d1b |
children | 38ef94bea3b8 |
files | postproc/swscale.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/postproc/swscale.c Thu Nov 06 23:11:15 2003 +0000 +++ b/postproc/swscale.c Thu Nov 06 23:22:17 2003 +0000 @@ -2119,7 +2119,10 @@ */ int sws_scale_ordered(SwsContext *c, uint8_t* src[], int srcStride[], int srcSliceY, int srcSliceH, uint8_t* dst[], int dstStride[]){ - return c->swScale(c, src, srcStride, srcSliceY, srcSliceH, dst, dstStride); + //copy strides, so they can safely be modified + int srcStride2[3]= {srcStride[0], srcStride[1], srcStride[2]}; + int dstStride2[3]= {dstStride[0], dstStride[1], dstStride[2]}; + return c->swScale(c, src, srcStride2, srcSliceY, srcSliceH, dst, dstStride2); } /**