mobile: fix M2PA payload decoding

This commit is contained in:
mich 2019-01-25 16:46:03 +01:00
parent c0c4f32a70
commit 99184eb1b9
1 changed files with 6 additions and 0 deletions

View File

@ -561,6 +561,12 @@ class M2PA(Envelope):
self[2]._GEN[1][2].set_blauto(lambda: 8*(self[0][4].get_val()-18))
self[2]._GEN[2][1].set_blauto(lambda: 8*(self[0][4].get_val()-17))
self[2].DEFAULT_ALT.set_blauto(lambda: 8*(self[0][4].get_val()-16))
def _from_char(self, char):
self[0]._from_char(char)
self[1]._from_char(char)
if self[0][4].get_val() > 16:
self[2]._from_char(char)
MTP3SubServInd_dict = {