diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-20 17:03:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-20 17:03:32 +0100 |
| commit | d23ced341f50f47759e75260d706c06c0cb74046 (patch) | |
| tree | a029685c2aff69c9cbce8839f2cdcf42d4b08748 /src/lib/util.cc | |
| parent | 476af651fc34d7c6394fea0e39d351392b4e46d3 (diff) | |
Don't cache sample format, fix up various things.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index 47a86da9e..3f5200ead 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -189,35 +189,6 @@ stacktrace (ostream& out, int levels) } #endif -/** @param s Sample format. - * @return String representation. - */ -string -audio_sample_format_to_string (AVSampleFormat s) -{ - /* Our sample format handling is not exactly complete */ - - switch (s) { - case AV_SAMPLE_FMT_S16: - return "S16"; - default: - assert (false); - } -} - -/** @param s String representation of a sample format, as returned from audio_sample_format_to_string(). - * @return Sample format. - */ -AVSampleFormat -audio_sample_format_from_string (string s) -{ - if (s == "S16") { - return AV_SAMPLE_FMT_S16; - } - - assert (false); -} - /** @return Version of vobcopy that is on the path (and hence that we will use) */ static string vobcopy_version () |
