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

Replace .wma / .wmv with .asf detection (the container format). #398

Merged
merged 1 commit into from
Sep 28, 2020

Conversation

Borewit
Copy link
Collaborator

@Borewit Borewit commented Sep 19, 2020

Replace .wma / .wmv detection with .asf detection (the container format).

Rational:

The current detection of .wma and .wmv are note reliable.

Windows Media Audio (WMA) and Windows Media Video (WMV) are based on the Advanced Systems Format (ASF).

A .wma is an ASF file using the Windows Media Audio codec.
A .wmv is an ASF file using the Windows Media Video codec for video.

Only is we detect these specific codecs are used, we can safely map to .wma or .wmv.

Resolves #290.

@Borewit Borewit self-assigned this Sep 19, 2020
@sindresorhus sindresorhus merged commit fe331be into master Sep 28, 2020
@sindresorhus sindresorhus deleted the issue/290 branch September 28, 2020 17:24
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

Successfully merging this pull request may close these issues.

ASF/.asf detection is missing / broken
2 participants