Move the probe loop from av_open_input_file() into its own method