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.8-1.1+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=590203c9ead1f86b26c560b552ca0399bd5c1c70;p=libde265.git [PATCH] fix MC with HDR chroma, but SDR luma (#301) Gbp-Pq: Name 0003-CVE-2021-36410.patch --- diff --git a/libde265/motion.cc b/libde265/motion.cc index deae240..8bbfbde 100644 --- a/libde265/motion.cc +++ b/libde265/motion.cc @@ -376,7 +376,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);