mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avfilter/vf_fspp: check count before calling row_idct()
Fixes crash with odd widths Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
622936424c
commit
375a0273ce
@ -221,6 +221,7 @@ static void filter(FSPPContext *p, uint8_t *dst, uint8_t *src,
|
||||
p->row_fdct(block + 8 * 8, p->src + y * stride + 8 + x0 + 2 - (y & 1), stride, (es - 4) >> 2);
|
||||
|
||||
p->column_fidct((int16_t *)(&p->threshold_mtx[0]), block, block3, es&(~1));
|
||||
if (es > 3)
|
||||
p->row_idct(block3 + 0 * 8, p->temp + (y & 15) * stride + x0 + 2 - (y & 1), stride, es >> 2);
|
||||
|
||||
if (!(y1 & 7) && y1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user