avcodec/tscc2: Skip duplicate frames