diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-21 12:51:43 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-21 12:51:43 +0100 |
| commit | dc6713f19bb9084aac18eabe399b14ca1ac26df9 (patch) | |
| tree | 8c6591d7dbc10c54c672869dd4ec8bb64aeb8c39 /src/lib/sndfile_decoder.cc | |
| parent | 83742c7e6edcf958e0820abc77c029f4ada4880f (diff) | |
| parent | 47e6b6725168213f2a7db24c2965cfa173f755b4 (diff) | |
Merge master.
Diffstat (limited to 'src/lib/sndfile_decoder.cc')
| -rw-r--r-- | src/lib/sndfile_decoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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<Film> 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. */ |
