mirror of https://git.ffmpeg.org/ffmpeg.git
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.
This commit is contained in:
parent
6a9c859444
commit
808d8ff6bb
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue