Fixed Properly reset clear codec.
@@ -1173,6 +1173,13 @@ BOOL clear_context_reset(CLEAR_CONTEXT* clear)
return FALSE;
clear->seqNumber = 0;
+ clear->VBarStorageCursor = 0;
+ clear->ShortVBarStorageCursor = 0;
+
+ if (clear->nsc)
+ nsc_context_reset(clear->nsc, clear->nsc->width, clear->nsc->height);
+
+ memset(clear->TempBuffer, 0, clear->TempSize);
return TRUE;
}
CLEAR_CONTEXT* clear_context_new(BOOL Compressor)
