diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-10-02 16:27:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-10-02 16:27:51 +0100 |
| commit | 173bbf984547a598df87656b0a5c8087a4ed7c2e (patch) | |
| tree | 98260a06923db4af4beb7629d4ecb1bc1191139b /src/lib | |
| parent | 8090556101d03d07559bb5c71b5374e7f91883b8 (diff) | |
Tidy up test for whether or not to resample.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/j2k_wav_encoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/j2k_wav_encoder.cc b/src/lib/j2k_wav_encoder.cc index 87514bf14..c37efb472 100644 --- a/src/lib/j2k_wav_encoder.cc +++ b/src/lib/j2k_wav_encoder.cc @@ -221,7 +221,7 @@ J2KWAVEncoder::encoder_thread (ServerDescription* server) 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)) { + if (_fs->audio_sample_rate != _fs->target_sample_rate ()) { #ifdef HAVE_SWRESAMPLE stringstream s; |
