Detect duplicate frames