avcodec/dovi_rpu: fix off-by-one in loop
Otherwise the last VDR would never get copied.
This commit is contained in:
parent
d5648a806f
commit
f04a2ba302
@ -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]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user