diff --git a/common/rfb/H264Decoder.cxx b/common/rfb/H264Decoder.cxx index 53b223db97..1a310a3c17 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)