From 21bbca806f60ae6ecc70ee4d2f51830403c68b33 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 6 Jan 2013 19:41:37 +0000 Subject: Fix a crash when there is no audio (but we are set to external). --- src/lib/encoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/encoder.cc') diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index 61e95a38a..6e1209d83 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -136,7 +136,7 @@ void Encoder::process_end () { #if HAVE_SWRESAMPLE - if (_film->audio_stream() && _swr_context) { + if (_film->audio_stream() && _film->audio_stream()->channels() && _swr_context) { shared_ptr out (new AudioBuffers (_film->audio_stream()->channels(), 256)); -- cgit v1.2.3