From fd5567a6bbecf6f7e213e25284b3baf01f7a96e2 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 28 Jun 2014 00:39:02 +0100 Subject: Fix crash on analysing audio (and possibly DCP creation) with resampled content. Reported-by: Matthias Damm --- src/lib/player.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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 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 + ); } } } -- cgit v1.2.3