diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-27 19:01:47 -0400 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-05-28 08:59:56 -0400 |
commit | 009f829dde811af654af7110326aea3a72c05d5e (patch) | |
tree | 25b781799becabb9d4e2486fde52b455c107e2b3 /libswscale/utils.c | |
parent | 88aa21593932fbf5597996041ab669848c542ee5 (diff) | |
download | ffmpeg-009f829dde811af654af7110326aea3a72c05d5e.tar.gz |
swscale: fix crash in bilinear scaling.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 571f45be3d..a2a6a1e191 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1001,6 +1001,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) c->lumPixBuf[i] = c->lumPixBuf[i+c->vLumBufSize]; } c->uv_off = dst_stride_px; + c->uv_offx2 = dst_stride; for (i=0; i<c->vChrBufSize; i++) { FF_ALLOC_OR_GOTO(c, c->chrUPixBuf[i+c->vChrBufSize], dst_stride*2+1, fail); c->chrUPixBuf[i] = c->chrUPixBuf[i+c->vChrBufSize]; |