avformat/mxfdec: detect loops during header parsing
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Jan 2014 03:49:50 +0000 (04:49 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 8 Jan 2014 03:55:42 +0000 (04:55 +0100)
commit1c010fd035c1a14dc73827b84f21f593e969a5d6
tree5717d1b4500ae663d4fbc9ab9a3d629b611255dd
parent94cf4f8bac12c58e30ce3b5d72cf5898baafe9a8
avformat/mxfdec: detect loops during header parsing

The header parser uses forward and backward parsing, making the
bulletproof prevention of loops difficult, thus this simple
detection code.
If someone improves the forward/backward parsing so it cannot loop
then this commit should be reverted

Fixes Ticket3278

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/mxfdec.c