projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45f8345
)
Fix a crash when there is no audio (but we are set to external).
author
Carl Hetherington
<cth@carlh.net>
Sun, 6 Jan 2013 19:41:37 +0000
(19:41 +0000)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 6 Jan 2013 19:41:37 +0000
(19:41 +0000)
src/lib/encoder.cc
patch
|
blob
|
history
diff --git
a/src/lib/encoder.cc
b/src/lib/encoder.cc
index 61e95a38a2f5354a55cbb00b281a38d550ccbfdb..6e1209d83512b82374010ecc71d704acf535ef54 100644
(file)
--- 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));