Commit 808d8ff6 authored by Ronald S. Bultje's avatar Ronald S. Bultje

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.
parent 6a9c8594
...@@ -749,7 +749,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) ...@@ -749,7 +749,7 @@ int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter)
int srcH= c->srcH; int srcH= c->srcH;
int dstW= c->dstW; int dstW= c->dstW;
int dstH= c->dstH; 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; int flags, cpu_flags;
enum PixelFormat srcFormat= c->srcFormat; enum PixelFormat srcFormat= c->srcFormat;
enum PixelFormat dstFormat= c->dstFormat; enum PixelFormat dstFormat= c->dstFormat;
......
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