summaryrefslogtreecommitdiffstats
path: root/postproc
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-11-06 23:22:17 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-11-06 23:22:17 +0000
commit468887480c028832e3f2e105ca63ef7be5828b29 (patch)
treea2098c847ba9b9e3598ccde23ea7258b24e31184 /postproc
parent598401ceea29268fbe9c644ada69dca82b9307fd (diff)
downloadffmpeg-streaming-468887480c028832e3f2e105ca63ef7be5828b29.zip
ffmpeg-streaming-468887480c028832e3f2e105ca63ef7be5828b29.tar.gz
1000l
Originally committed as revision 11407 to svn://svn.mplayerhq.hu/mplayer/trunk/postproc
Diffstat (limited to 'postproc')
-rw-r--r--postproc/swscale.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/postproc/swscale.c b/postproc/swscale.c
index 9b9d98f..e3c16a5 100644
--- a/postproc/swscale.c
+++ b/postproc/swscale.c
@@ -2119,7 +2119,10 @@ SwsContext *sws_getContext(int srcW, int srcH, int origSrcFormat, int dstW, int
*/
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);
}
/**
OpenPOWER on IntegriCloud