From: Dirk Farin Date: Tue, 5 Apr 2022 17:27:04 +0000 (+0200) Subject: [PATCH] fix MC with HDR chroma, but SDR luma (#301) X-Git-Tag: archive/raspbian/1.0.3-1+rpi1+deb10u1^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=464c0c01eacc6b0844b3da908a33d8ca6ccf59b9;p=libde265.git [PATCH] fix MC with HDR chroma, but SDR luma (#301) Gbp-Pq: Name CVE-2021-36410.patch --- diff --git a/libde265/motion.cc b/libde265/motion.cc index 3bb91d7..9522158 100644 --- a/libde265/motion.cc +++ b/libde265/motion.cc @@ -377,7 +377,7 @@ void generate_inter_prediction_samples(base_context* ctx, refPic->get_luma_stride(), nPbW,nPbH, bit_depth_L); } - if (img->high_bit_depth(0)) { + if (img->high_bit_depth(1)) { mc_chroma(ctx, sps, vi->mv[l].x, vi->mv[l].y, xP,yP, predSamplesC[0][l],nCS, (const uint16_t*)refPic->get_image_plane(1), refPic->get_chroma_stride(), nPbW/SubWidthC,nPbH/SubHeightC, bit_depth_C);