summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-06-28 00:39:02 +0100
committerCarl Hetherington <cth@carlh.net>2014-06-28 00:39:02 +0100
commitfd5567a6bbecf6f7e213e25284b3baf01f7a96e2 (patch)
treed497fc35a9a230be71f231645fbc21fb850e88f0 /src/lib
parent615511a21c22066592efaf6297773f077fc83508 (diff)
Fix crash on analysing audio (and possibly DCP creation) with resampled
content. Reported-by: Matthias Damm
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/player.cc7
1 files changed, 6 insertions, 1 deletions
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
+ );
}
}
}