mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavfi/alphaextract: drop cur_linesize = out_linesize branch in draw_slice()
The code causes uninitialized data copy, and may be actually slower than a loop over each line in case the padding is big.
This commit is contained in:
parent
fe63d41302
commit
1f467220cf
@ -77,11 +77,6 @@ static int draw_slice(AVFilterLink *inlink, int y0, int h, int slice_dir)
|
||||
pin += 4;
|
||||
}
|
||||
}
|
||||
} else if (cur_buf->linesize[A] == out_buf->linesize[Y]) {
|
||||
const int linesize = cur_buf->linesize[A];
|
||||
memcpy(out_buf->data[Y] + y0 * linesize,
|
||||
cur_buf->data[A] + y0 * linesize,
|
||||
linesize * h);
|
||||
} else {
|
||||
const int linesize = FFMIN(out_buf->linesize[Y], cur_buf->linesize[A]);
|
||||
int y;
|
||||
|
Loading…
Reference in New Issue
Block a user