[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)
committerPhilipp Kern <pkern@debian.org>
Sun, 16 Oct 2022 13:26:20 +0000 (14:26 +0100)
Gbp-Pq: Name 0003-CVE-2021-36410.patch

libde265/motion.cc

index deae2400fce71d949a763a38fb8c707536ba54c6..8bbfbde0eb2be1aacf0caa3ee10212c8ce8e5436 100644 (file)
@@ -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);