[PATCH] fix MC with HDR chroma, but SDR luma (#301)
authorDirk Farin <dirk.farin@gmail.com>
Tue, 5 Apr 2022 17:27:04 +0000 (19:27 +0200)
committerTobias Frost <tobi@debian.org>
Thu, 15 Dec 2022 16:40:12 +0000 (16:40 +0000)
Gbp-Pq: Name CVE-2021-36410.patch

libde265/motion.cc

index 3bb91d72f53f77bd8496b115214c397d7669e76a..95221581ae902d51fde1fb8fb8669e5ebdbb36ce 100644 (file)
@@ -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);