Fix some coverity issues. Pixel Shift: calculate per frame brightness factors only once after preprocessing

This commit is contained in:
heckflosse
2017-06-17 14:43:48 +02:00
parent 642b4cc86c
commit 2a444e260a
6 changed files with 97 additions and 73 deletions

View File

@@ -1290,10 +1290,10 @@ public:
buffer[0] = 0; //
return buffer; // TODO: how to get the string content!?
// normal path below (copy the content of the string), but has to be bug fixed
memcpy (buffer, t->getValue(), 30);
buffer[30] = 0;
return buffer;
// // normal path below (copy the content of the string), but has to be bug fixed
// memcpy (buffer, t->getValue(), 30);
// buffer[30] = 0;
// return buffer;
}
};
PALensModelQInterpreter paLensModelQInterpreter;
@@ -1308,10 +1308,10 @@ public:
buffer[0] = 0;
return buffer; // TODO: how to get the string content!?
// normal path below (copy the content of the string), but has to be bug fixed
memcpy (buffer, t->getValue(), 20);
buffer[20] = 0;
return buffer;
// // normal path below (copy the content of the string), but has to be bug fixed
// memcpy (buffer, t->getValue(), 20);
// buffer[20] = 0;
// return buffer;
}
};
PALensInfoQInterpreter paLensInfoQInterpreter;