diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-05-08 16:58:19 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-05-08 16:58:19 +0100 |
| commit | 83742c7e6edcf958e0820abc77c029f4ada4880f (patch) | |
| tree | c56eed285dd742cee8d2cc6584be37a41722ee47 /src/lib/encoder.cc | |
| parent | b66a082df05202f0119b16853f04034cf85ec80b (diff) | |
Better fix for still (no sound) DCP crash.
Diffstat (limited to 'src/lib/encoder.cc')
| -rw-r--r-- | src/lib/encoder.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/encoder.cc b/src/lib/encoder.cc index cff9899ac..8549962ff 100644 --- a/src/lib/encoder.cc +++ b/src/lib/encoder.cc @@ -296,6 +296,10 @@ Encoder::process_video (shared_ptr<const Image> image, bool same, boost::shared_ void Encoder::process_audio (shared_ptr<const AudioBuffers> data) { + if (!data->frames ()) { + return; + } + #if HAVE_SWRESAMPLE /* Maybe sample-rate convert */ if (_swr_context) { |
