Set TH_ENCCTL_SET_DUPLICATE_FLAG when we see a gap flag, to indicate to the encoder that the current frame is a duplicate of the previous frame.
Set TH_ENCCTL_SET_DUPLICATE_FLAG when we see a gap flag, to indicate to the encoder that the current frame is a duplicate of the previous frame.