[libav-bugs] [Bug 580] av_guess_codec ignores parameters and returns surprising values

bugzilla at libav.org bugzilla at libav.org
Mon Oct 28 07:23:47 CET 2013


--- Comment #2 from Andrew Kelley <superjoe30 at gmail.com> 2013-10-28 07:23:47 CET ---
(In reply to comment #1)

> What makes you think it should be vorbis.

This is not the main issue, but the fact that .flac the canonical FLAC
extension and .ogg is the canonical vorbis extension.

> In this case, the "problem" (if you can call it that) is not in the
> av_guess_codec function, but in the ogg muxer, which declares FLAC as the
> default audio codec for itself.

No, the problem is certainly that av_guess_codec is ignoring the codec short
name parameter. In the example I gave above, I pass "vorbis" to av_guess_codec,
which ignores the parameter and returns the flac encoder anyway.

Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the libav-bugs mailing list