Skip to content

typefind: Hold off making suggestions too early for MPEG based formats

By suggesting possible detection too early, it's possible that the wrong format is detected. Hold off making suggestions until one of the following conditions is met:

  • Probability > GST_TYPE_FIND_LIKELY
  • At least MPEG_MIN_PROBE_LENGTH bytes are available
  • EOS has reached, in which case the best guess wins

Fixes #628

Merge request reports