diff --git a/libavfilter/vf_cuda_grid.c b/libavfilter/vf_cuda_grid.c index 3bb2852..6367239 100644 --- a/libavfilter/vf_cuda_grid.c +++ b/libavfilter/vf_cuda_grid.c @@ -476,7 +476,10 @@ static int overlay_pixel_rect(CudaGridContext *s, const GridOverlay *ov, base_w = s->cell_px[ov->cell].w; base_h = s->cell_px[ov->cell].h; } else { - return AVERROR(EINVAL); + /* Cell index out of range — silently skip (overlay broadcast'нет ко всем + * cuda_grid instances, layouts с меньшим nb_cells). NOT error чтобы + * не валить filter chain. */ + return 1; } rx = base_x + (int)(ov->x * base_w);