diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-07-25 13:49:55 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-07-25 13:49:55 +0100 |
| commit | 945460f71db55d8daa232df3d869cc604ae5a240 (patch) | |
| tree | 604b528c25eca3b20ea5502f40af56111f294434 /src/lib/audio_decoder.cc | |
| parent | 872557b0261c0daf2206a24e38f33b1c9871c8a3 (diff) | |
Fix crash in tests.
Diffstat (limited to 'src/lib/audio_decoder.cc')
| -rw-r--r-- | src/lib/audio_decoder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/audio_decoder.cc b/src/lib/audio_decoder.cc index e827a77b9..cf9e3ac51 100644 --- a/src/lib/audio_decoder.cc +++ b/src/lib/audio_decoder.cc @@ -36,7 +36,7 @@ AudioDecoder::AudioDecoder (shared_ptr<const Film> film, shared_ptr<const AudioC : Decoder (film) , _audio_position (0) { - if (content->content_audio_frame_rate() != content->output_audio_frame_rate()) { + if (content->content_audio_frame_rate() != content->output_audio_frame_rate() && content->audio_channels ()) { _resampler.reset ( new Resampler ( content->content_audio_frame_rate(), |
