added more secure instructions and tests in case the function is used later in an other context
added more secure instructions and tests in case the function is used later in an other context

SmartJog/mpeg-indexer