From 464c0c01eacc6b0844b3da908a33d8ca6ccf59b9 Mon Sep 17 00:00:00 2001 From: Dirk Farin Date: Tue, 5 Apr 2022 19:27:04 +0200 Subject: [PATCH] [PATCH] fix MC with HDR chroma, but SDR luma (#301) Gbp-Pq: Name CVE-2021-36410.patch --- libde265/motion.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2