summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-20 17:03:32 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-20 20:05:26 +0100
commit068f8fe319aad390788bdea24ad21ef758d6dd03 (patch)
treea029685c2aff69c9cbce8839f2cdcf42d4b08748 /src/lib/util.cc
parentb996eb8276dc4645745540190c9a2f5e2c875c0c (diff)
Don't cache sample format, fix up various things.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc29
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 ()