aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2011-06-02 11:25:56 -0700
committerRonald S. Bultje <rsbultje@gmail.com>2011-06-02 11:25:56 -0700
commit808d8ff6bb92e641cdd99a0b06767eabd707b925 (patch)
treee4c91601b49e3648569011161acb81a0f3d868b5
parent6a9c85944427e3c4355bce67d7f677ec69527bff (diff)
downloadffmpeg-808d8ff6bb92e641cdd99a0b06767eabd707b925.tar.gz
swscale: allocate larger buffer to handle altivec overreads.
Altivec sws code intentionally overreads buffers for better performance, so we need to allocate larger buffers to handle that.
-rw-r--r--libswscale/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index a2a6a1e191..827abc66d2 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -749,7 +749,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
int srcH= c->srcH;
int dstW= c->dstW;
int dstH= c->dstH;
- int dst_stride = FFALIGN(dstW * sizeof(int16_t), 16), dst_stride_px = dst_stride >> 1;
+ int dst_stride = FFALIGN(dstW * sizeof(int16_t) + 16, 16), dst_stride_px = dst_stride >> 1;
int flags, cpu_flags;
enum PixelFormat srcFormat= c->srcFormat;
enum PixelFormat dstFormat= c->dstFormat;