avformat/mxfdec: fix and enhance RIP KLV length checks
authorMarton Balint <cus@passwd.hu>
Thu, 4 Apr 2019 21:08:42 +0000 (23:08 +0200)
committerMarton Balint <cus@passwd.hu>
Sun, 28 Apr 2019 19:55:28 +0000 (21:55 +0200)
commit3dee6c09970dd0defad91e8270f66a4be3b6570d
treeba0d68ef8176a95cb038245e7e7c153e9b5c509a
parentfc15e8306f84396fa26798587552500ff2746ada
avformat/mxfdec: fix and enhance RIP KLV length checks

KLV length is BER encoded (variable size), but the code assumed the encoding to
always use 4 bytes.

Fixes parsing Random Index Pack in samples/MXF/issue2160/PW0805A0V01.4C5B5636.EFA330.mxf.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mxfdec.c