mxf: Override faulty PreviousPartition entries
authorLuca Barbato <lu_zero@gentoo.org>
Thu, 13 Mar 2014 15:12:05 +0000 (16:12 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 19 Mar 2014 10:56:33 +0000 (11:56 +0100)
commit842ea36c747eb6537c4236114346cb7a3e9a8df1
treef0798b22167c2890c786b9bcee74ccaa52667f62
parent92ebb332157195b7c1212e734c5668afbf19cf2b
mxf: Override faulty PreviousPartition entries

Some files set the PreviousPartition field to point to its own offset.

If we are parsing forward the Previous partition is immediately known
and its value could be used, otherwise we can safely point to the
header.

Reported-By: Jean Baptiste Kempf <jb@videolan.org>
libavformat/mxfdec.c