You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The LipSync feature doesn't work at all in my system.
I investigated this problem and found that the bug is in QMALipSyncLoader::load().
In this function, expression names and phone names are copied from .lip file as follows:
int len = data.length();
char *s = new char[len];
memcpy(s, data.constData(), len);
but these copies of the strings don't have information of their lengths, so MotionController::setup() and LipSync::createMotion() cannot compare correctly the face names and the phone names, respectively.
I modified the codes as follows to copy '\0' at the ends of the names:
int len = data.length();
char *s = new char[len + 1];
memcpy(s, data.constData(), len + 1);
and confirmed the LipSync works for me.
The text was updated successfully, but these errors were encountered:
The LipSync feature doesn't work at all in my system.
I investigated this problem and found that the bug is in QMALipSyncLoader::load().
In this function, expression names and phone names are copied from .lip file as follows:
but these copies of the strings don't have information of their lengths, so MotionController::setup() and LipSync::createMotion() cannot compare correctly the face names and the phone names, respectively.
I modified the codes as follows to copy '\0' at the ends of the names:
and confirmed the LipSync works for me.
The text was updated successfully, but these errors were encountered: