From 9abcf0e5e8d02a5536bdc9968b423e73a3e29cce Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Mon, 22 Jul 2024 22:34:12 +0000 Subject: [PATCH] H264Decoder: Fix context reset This fixes a regression introduced by 12b3f4021641537b90727b23d42de5dff59006cd. --- common/rfb/H264Decoder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rfb/H264Decoder.cxx b/common/rfb/H264Decoder.cxx index 53b223db..1a310a3c 100644 --- a/common/rfb/H264Decoder.cxx +++ b/common/rfb/H264Decoder.cxx @@ -131,7 +131,7 @@ void H264Decoder::decodeRect(const Rect& r, const uint8_t* buffer, if (!ctx->isReady()) throw Exception("H264Decoder: Context is not ready"); - if (flags & resetContext) + if (reset & resetContext) ctx->reset(); if (!len) -- 2.39.5