From 476af651fc34d7c6394fea0e39d351392b4e46d3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 20 Oct 2012 15:40:46 +0100 Subject: Stuff. --- src/lib/util.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/util.cc') 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) */ -- cgit v1.2.3