add UT for LTR setopton and fix crash issue
avoid LTR reference frames overflow
Merge pull request #1326 from ruil2/ltrv1.1.1

    add UT for LTR setopton and fix crash issue