avcodec/mpeg4videodec: Improve the overflow checks in mpeg4_decode_sprite_trajectory()