The source project of this merge request has been removed.
Subsample out->p.h correctly in dav1d_apply_grain
Subsample out->p.h correctly in dav1d_apply_grain
The height of the chroma planes should be calculated as (out->p.h + ss_ver) >> ss_ver, not out->p.h >> ss_ver.
This bug was reported in https://crbug.com/1201074. The bug can be detected by decoding an AVIF image of size 228x1 that has film grain synthesis under MemorySanitizer. MemorySanitizer reports a use-of-uninitialized-value error when we read the U plane at index 64.Update fg_apply_tmpl.c