avformat/mxfdec: detect loops during header parsing