flashsv: check for keyframe before using differential coding