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

[WISH] provide identify function or rewrite encoding? #2572

Open
Oldes opened this issue Oct 10, 2023 · 0 comments
Open

[WISH] provide identify function or rewrite encoding? #2572

Oldes opened this issue Oct 10, 2023 · 0 comments

Comments

@Oldes
Copy link
Owner

Oldes commented Oct 10, 2023

Currently there is encoding? function, which returns the media codec name for given binary data.
Problem with this function is, that it requires to have the codec already imported. But there is quite a lot codecs, which are not imported by default, because are not much used. Like SWF or PLIST codecs.

When the codec is not imported, using for example load %some.swf would fail, because encoding? does not recognise swf file.

So there should be a function, which may guess the file type without need to have the codec, and if it finds such a file, it could import the codec's code, so the file could be decoded.

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

No branches or pull requests

1 participant