diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-20 15:40:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-20 20:05:08 +0100 |
| commit | b996eb8276dc4645745540190c9a2f5e2c875c0c (patch) | |
| tree | 0dc0cef257733a52cc347197cb0ed08ae53fe4f4 /src/lib/util.cc | |
| parent | a6976df179011056027a99ae210fb28117c36840 (diff) | |
Rework audio to deinterleave straight away and pass data
around as floats. Should simplify things.
Diffstat (limited to 'src/lib/util.cc')
| -rw-r--r-- | src/lib/util.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc index dc0ee5642..47a86da9e 100644 --- a/src/lib/util.cc +++ b/src/lib/util.cc @@ -201,10 +201,8 @@ audio_sample_format_to_string (AVSampleFormat s) case AV_SAMPLE_FMT_S16: return "S16"; default: - break; + assert (false); } - - return "Unknown"; } /** @param s String representation of a sample format, as returned from audio_sample_format_to_string(). @@ -217,7 +215,7 @@ audio_sample_format_from_string (string s) return AV_SAMPLE_FMT_S16; } - return AV_SAMPLE_FMT_NONE; + assert (false); } /** @return Version of vobcopy that is on the path (and hence that we will use) */ |
