mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2025-02-07 21:07:33 +00:00
commit
5825b2e392
@ -92,7 +92,7 @@ static void filter(GradFunContext *ctx, uint8_t *dst, const uint8_t *src, int wi
|
||||
for (y = 0; y < r; y++)
|
||||
ctx->blur_line(dc, buf + y * bstride, buf + (y - 1) * bstride, src + 2 * y * src_linesize, src_linesize, width / 2);
|
||||
for (;;) {
|
||||
if (y < height - r) {
|
||||
if (y + 1 < height - r) {
|
||||
int mod = ((y + r) / 2) % r;
|
||||
uint16_t *buf0 = buf + mod * bstride;
|
||||
uint16_t *buf1 = buf + (mod ? mod - 1 : r - 1) * bstride;
|
||||
|
@ -121,7 +121,7 @@ static int weave_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
|
||||
out->linesize[i] * 2,
|
||||
s->prev->data[i] + start * s->prev->linesize[i],
|
||||
s->prev->linesize[i],
|
||||
s->linesize[i], end - start - compensation * field1);
|
||||
s->linesize[i], end - start - compensation * field2);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user