diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-12-18 19:05:55 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-12-18 19:05:55 +0000 |
| commit | a54bdb873641bbc84298f4424dba17a075d0c0da (patch) | |
| tree | 95f2b945db8e64dbc69f0b2193c8ac1faa1e9536 /src/lib/ffmpeg_decoder.cc | |
| parent | 3045faaf44a775c1918732a0c35062c935113c19 (diff) | |
Try to throw an exception rather than asserting on an unknown sound format.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
| -rw-r--r-- | src/lib/ffmpeg_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 74eb8934c..911714d7b 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -450,7 +450,7 @@ FFmpegDecoder::deinterleave_audio (uint8_t* data, int size) break; default: - assert (false); + throw DecodeError (String::compose ("Unrecognised audio sample format (%1)", static_cast<int> (audio_sample_format()))); } return audio; |
