From 50cb31af16240b248700dab1484d7f07656c66df Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 20 Jun 2013 17:34:23 +0100 Subject: Various fixes to make audio analysis sort-of work. --- src/lib/audio_decoder.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/lib/audio_decoder.cc') diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index bbd4ced6c..a9e01908c 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -59,10 +59,10 @@ AudioDecoder::AudioDecoder (shared_ptr f, shared_ptraudio_channels ()), AV_SAMPLE_FMT_FLTP, _audio_content->output_audio_frame_rate(), - av_get_default_channel_layout (MAX_AUDIO_CHANNELS), + av_get_default_channel_layout (_audio_content->audio_channels ()), AV_SAMPLE_FMT_FLTP, _audio_content->content_audio_frame_rate(), 0, 0 @@ -152,7 +152,6 @@ AudioDecoder::audio (shared_ptr data, Time time) } Audio (dcp_mapped, time); - cout << "bumping n.a. by " << data->frames() << " ie " << film->audio_frames_to_time(data->frames()) << "\n"; _next_audio = time + film->audio_frames_to_time (data->frames()); } -- cgit v1.2.3