summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-12-18 19:32:48 +0000
committerCarl Hetherington <cth@carlh.net>2012-12-18 19:32:48 +0000
commit2587f29e54bac098296dbef6557b9bf9bcdc2406 (patch)
treef934cfc55d101e1ea939be999fc31f661b08ca43 /src/lib/ffmpeg_decoder.cc
parent8a1b1aca4862b62862e6b523998e328ec2889d30 (diff)
parenta54bdb873641bbc84298f4424dba17a075d0c0da (diff)
Merge branch 'master' into video-player
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc
index a05b331cc..0e4446a86 100644
--- a/src/lib/ffmpeg_decoder.cc
+++ b/src/lib/ffmpeg_decoder.cc
@@ -411,7 +411,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;