summaryrefslogtreecommitdiff
path: root/src/lib/transcoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-05-08 16:58:19 +0100
committerCarl Hetherington <cth@carlh.net>2013-05-08 16:58:19 +0100
commit83742c7e6edcf958e0820abc77c029f4ada4880f (patch)
treec56eed285dd742cee8d2cc6584be37a41722ee47 /src/lib/transcoder.cc
parentb66a082df05202f0119b16853f04034cf85ec80b (diff)
Better fix for still (no sound) DCP crash.
Diffstat (limited to 'src/lib/transcoder.cc')
-rw-r--r--src/lib/transcoder.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc
index faafcaf8b..48cf402d7 100644
--- a/src/lib/transcoder.cc
+++ b/src/lib/transcoder.cc
@@ -56,7 +56,7 @@ Transcoder::Transcoder (shared_ptr<Film> f, DecodeOptions o, Job* j, shared_ptr<
assert (_encoder);
shared_ptr<AudioStream> st = f->audio_stream();
- if (st) {
+ if (st && st->sample_rate ()) {
_matcher.reset (new Matcher (f->log(), st->sample_rate(), f->source_frame_rate()));
}
_delay_line.reset (new DelayLine (f->log(), f->audio_delay() / 1000.0f));