Encoder fix for ticket #712 to not use STSA for pictures that refer to pictures having the same temporal ID