diff options
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | src/lib/player.cc | 7 |
2 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2014-06-28 Carl Hetherington <cth@carlh.net> + + * Fix crash on analysing audio (and possibly DCP creation) with + resampled content. + 2014-06-27 Carl Hetherington <cth@carlh.net> * Version 1.71.0 released. diff --git a/src/lib/player.cc b/src/lib/player.cc index 7bf78c905..2d2977606 100644 --- a/src/lib/player.cc +++ b/src/lib/player.cc @@ -150,7 +150,12 @@ Player::pass () if (re) { shared_ptr<const AudioBuffers> b = re->flush (); if (b->frames ()) { - process_audio (earliest, b, ac->audio_length (), true); + process_audio ( + earliest, + b, + ac->audio_length() * ac->output_audio_frame_rate() / ac->content_audio_frame_rate(), + true + ); } } } |
