From 60755251f2d2bf2c97b23bc65541c50624efe5b3 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Fri, 17 May 2013 16:27:22 +0100 Subject: Try to fix crash with stills without audio. --- src/lib/transcoder.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/lib/transcoder.cc') diff --git a/src/lib/transcoder.cc b/src/lib/transcoder.cc index faafcaf8b..fcfbb1648 100644 --- a/src/lib/transcoder.cc +++ b/src/lib/transcoder.cc @@ -56,7 +56,7 @@ Transcoder::Transcoder (shared_ptr f, DecodeOptions o, Job* j, shared_ptr< assert (_encoder); shared_ptr 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)); -- cgit v1.2.3