[FFmpeg-devel] [PATCH] Add libmodplug support.

Clément Bœsch ubitux at gmail.com
Wed Oct 5 21:47:38 CEST 2011

On Wed, Oct 05, 2011 at 07:13:18PM +0200, Reimar Döffinger wrote:
> Also, any chance of getting a probe function?

Oh and forgot to reply to that…

Actually, the API isn't really handy to use. I'd say probing a N bytes
buffer, sending it to ModPlug_Load() and check if it returns something not
NULL might work. But I don't know if libmodplug actually has a default
format fallback (just like heuristics which tend to detect /dev/random as
MP3), or if a integrity check might lead to a failure (since the buffer is
incomplete), etc. So I believe extensions are fine ATM.

Another solution would be to manually check for a list of potential
headers, but I don't think it belongs to that module code.

I'm working on supporting the options, extendable buffer and metadata
loading, which is IMO more important.

Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20111005/ab9ceb75/attachment.asc>

More information about the ffmpeg-devel mailing list