diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-01 11:25:56 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-01 11:25:56 +0100 |
| commit | cca887136613e3bf482fc520ed1b6d0a9ffbb6d5 (patch) | |
| tree | 4e1e10400bc92759dfac04c8a6cb034178732708 /src/lib | |
| parent | f3fdae3f8f4ae54b17f925f81a5e9d4b3589269b (diff) | |
Log message when resampling audio.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/j2k_wav_encoder.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/j2k_wav_encoder.cc b/src/lib/j2k_wav_encoder.cc index 86c3ae13f..241639400 100644 --- a/src/lib/j2k_wav_encoder.cc +++ b/src/lib/j2k_wav_encoder.cc @@ -216,7 +216,12 @@ void J2KWAVEncoder::process_begin (int64_t audio_channel_layout, AVSampleFormat audio_sample_format) { if ((_fs->audio_sample_rate != dcp_audio_sample_rate (_fs->audio_sample_rate)) || (rint (_fs->frames_per_second) != _fs->frames_per_second)) { -#ifdef HAVE_SWRESAMPLE +#ifdef HAVE_SWRESAMPLE + + stringstream s; + s << "Will resample audio from " << _fs->audio_sample_rate << " to " << target_sample_rate(); + _log->log (s.str ()); + _swr_context = swr_alloc_set_opts ( 0, audio_channel_layout, |
