mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
libdav1d: correctly copy ar_coeffs_uv to our struct
Our struct is a [2][25], libdav1d's is a [2][25 + 3] so the last 3 v coefficients were missing. Copy each plane's coefficients separately.
This commit is contained in:
parent
3fbc74582f
commit
18933dbde0
@ -425,8 +425,10 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
sizeof(fgp->codec.aom.uv_points));
|
||||
memcpy(&fgp->codec.aom.ar_coeffs_y, &p->frame_hdr->film_grain.data.ar_coeffs_y,
|
||||
sizeof(fgp->codec.aom.ar_coeffs_y));
|
||||
memcpy(&fgp->codec.aom.ar_coeffs_uv, &p->frame_hdr->film_grain.data.ar_coeffs_uv,
|
||||
sizeof(fgp->codec.aom.ar_coeffs_uv));
|
||||
memcpy(&fgp->codec.aom.ar_coeffs_uv[0], &p->frame_hdr->film_grain.data.ar_coeffs_uv[0],
|
||||
sizeof(fgp->codec.aom.ar_coeffs_uv[0]));
|
||||
memcpy(&fgp->codec.aom.ar_coeffs_uv[1], &p->frame_hdr->film_grain.data.ar_coeffs_uv[1],
|
||||
sizeof(fgp->codec.aom.ar_coeffs_uv[1]));
|
||||
memcpy(&fgp->codec.aom.uv_mult, &p->frame_hdr->film_grain.data.uv_mult,
|
||||
sizeof(fgp->codec.aom.uv_mult));
|
||||
memcpy(&fgp->codec.aom.uv_mult_luma, &p->frame_hdr->film_grain.data.uv_luma_mult,
|
||||
|
Loading…
Reference in New Issue
Block a user