movementdetector: Remove the first flag from if condition

Change-Id: I2a6b6ce9be1c2ebe2888250db1c7d30ec5b2fdde
movementdetector: Change a mem copy by a pointer exchange

Change-Id: I16c07e3681a3f31475ba07a66f7a8a269003c1ca