!213 修改ffmpeg已知问题

Merge pull request !213 from ziyugao/master
This commit is contained in:
openharmony_ci 2024-06-01 07:51:08 +00:00 committed by Gitee
commit 5825b2e392
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;