From: Andri Yngvason Date: Mon, 22 Jul 2024 22:34:12 +0000 (+0000) Subject: H264Decoder: Fix context reset X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1784%2Fhead;p=tigervnc.git H264Decoder: Fix context reset This fixes a regression introduced by 12b3f4021641537b90727b23d42de5dff59006cd. --- 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)