1
0
Fork 0

avcodec/dovi_rpu: fix off-by-one in loop

Otherwise the last VDR would never get copied.
This commit is contained in:
Niklas Haas 2024-03-21 13:32:21 +01:00
parent d5648a806f
commit f04a2ba302
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void ff_dovi_ctx_replace(DOVIContext *s, const DOVIContext *s0)
s->mapping = s0->mapping;
s->color = s0->color;
s->dv_profile = s0->dv_profile;
for (int i = 0; i < DOVI_MAX_DM_ID; i++)
for (int i = 0; i <= DOVI_MAX_DM_ID; i++)
ff_refstruct_replace(&s->vdr[i], s0->vdr[i]);
}