diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-01-06 19:41:37 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-01-06 19:41:37 +0000 |
| commit | 21bbca806f60ae6ecc70ee4d2f51830403c68b33 (patch) | |
| tree | 00a6cb25e267d5786510084edd7ea7462848ddca /src/lib/encoder.cc | |
| parent | 45f8345bf8b0222bcd57b081ad08855653f529af (diff) | |
Fix a crash when there is no audio (but we are set to external).
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<AudioBuffers> out (new AudioBuffers (_film->audio_stream()->channels(), 256)); |
