From 4fbec16cc17d689cbd1ac17d3f031765c04a53c1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 20 May 2013 12:33:37 +0100 Subject: [PATCH] Fix another crash on stills with no audio. --- src/lib/sndfile_decoder.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib/sndfile_decoder.cc b/src/lib/sndfile_decoder.cc index fdaf2eeaa..7e9e67d0f 100644 --- a/src/lib/sndfile_decoder.cc +++ b/src/lib/sndfile_decoder.cc @@ -96,6 +96,10 @@ SndfileDecoder::SndfileDecoder (shared_ptr f, DecodeOptions o) bool SndfileDecoder::pass () { + if (_audio_streams.empty ()) { + return true; + } + /* Do things in half second blocks as I think there may be limits to what FFmpeg (and in particular the resampler) can cope with. */ -- 2.30.2