Solved a decoder crash in AI when SPS may change from picture to picture

Merged Fabrice Le Léannec requested to merge fabrice.leleannec/ECM:fix-ChangingSPS-AI into master

Merge request reports