From c591af3668b090fa846cf7d931c80f3dbe2ce7c3 Mon Sep 17 00:00:00 2001 From: Joose Sainio Date: Wed, 21 Dec 2022 14:33:10 +0200 Subject: [PATCH] [isp] properly reset cabac context during intra search --- src/search_intra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/search_intra.c b/src/search_intra.c index ac633ee7..eca43d51 100644 --- a/src/search_intra.c +++ b/src/search_intra.c @@ -571,6 +571,7 @@ static double search_intra_trdepth( // If the cost of any 1/4th of the transform is already larger than the // whole transform, assume that splitting further is a bad idea. if (nosplit_cost <= cost_treshold) { + memcpy(&state->search_cabac, &cabac_data, sizeof(cabac_data)); return nosplit_cost; } }