Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement probing for FFmpeg #22

Open
DzonnyDZ opened this issue Dec 5, 2014 · 1 comment
Open

Implement probing for FFmpeg #22

DzonnyDZ opened this issue Dec 5, 2014 · 1 comment

Comments

@DzonnyDZ
Copy link

DzonnyDZ commented Dec 5, 2014

FFmpeg relies on libraries probing capabilities do detect if a file is in a format supported by the library. Please implement probing for file formats supported by libmodplug, so FFmpeg is able to detect mod files with invalid extension.
See https://trac.ffmpeg.org/ticket/2583 & https://trac.ffmpeg.org/ticket/4153

@ghost
Copy link

ghost commented Apr 29, 2015

Here's how ffmpeg does probing:

  • the application sends libavformat a small memory buffer containing the start of the file being probed (the buffer doesn't necessarily contain the whole file)
  • the probe function returns a detection score
  • this score is compared to other probers
  • if the score is not high enough, it retries with a larger probe buffer (up until a maximum size)

So what libmodplug should provide is a function that checks a buffer whether it contains a known file header.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant