Fix lack of audio with trimmed DCPs.
authorCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2013 11:31:57 +0000 (11:31 +0000)
committerCarl Hetherington <cth@carlh.net>
Thu, 24 Jan 2013 11:31:57 +0000 (11:31 +0000)
ChangeLog
src/lib/encoder.cc

index 9d30cea9b2ab78e8f874f009777e5373d7556fbe..c60a09208261d57d6b422aadc56d4df2b8fa1b80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-24  Carl Hetherington  <cth@carlh.net>
+
+       * Fix lack of audio with trimmed DCPs.
+
 2013-01-07  Carl Hetherington  <cth@carlh.net>
 
        * Version 0.70 released.
index 693bd5bc8e5baecceb779189b4a1f7e339c1a3cb..f396e3cf2a5140d32fc631fc1b729cfdca77076a 100644 (file)
@@ -350,6 +350,7 @@ Encoder::process_audio (shared_ptr<AudioBuffers> data)
 
                if (this_range.second < required_range.first || required_range.second < this_range.first) {
                        /* No part of this audio is within the required range */
+                       _audio_frame += data->frames();
                        return;
                } else if (required_range.first >= this_range.first && required_range.first < this_range.second) {
                        /* Trim start */