X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fencoder.cc;h=8549962ff01807505683266e778d16c4c8eaef43;hb=83742c7e6edcf958e0820abc77c029f4ada4880f;hp=cff9899acb6151cc19990f372c0a091c7d63968f;hpb=b66a082df05202f0119b16853f04034cf85ec80b;p=dcpomatic.git 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 image, bool same, boost::shared_ void Encoder::process_audio (shared_ptr data) { + if (!data->frames ()) { + return; + } + #if HAVE_SWRESAMPLE /* Maybe sample-rate convert */ if (_swr_context) {