diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-20 15:40:46 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-20 15:40:46 +0100 |
| commit | 476af651fc34d7c6394fea0e39d351392b4e46d3 (patch) | |
| tree | 0dc0cef257733a52cc347197cb0ed08ae53fe4f4 /src/lib/util.cc | |
| parent | a6976df179011056027a99ae210fb28117c36840 (diff) | |
Stuff.
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) */ |
