summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2010-11-15 07:17:05 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2010-11-15 07:17:05 (GMT)
commit32ff8c8e1d64392bf8c6303efe847d5578cd8d8c (patch)
tree5ccdc4c0790d873b776673a2ebae0d1229f28051
parent80f5975f80d2f513111e56931f92e6c3ebcf0e40 (diff)
Fix wrong logic : we do not passthrough only if we do not support the number of channels, not if we support it
git-svn-id: http://svn.mythtv.org/svn/trunk@27225 7dbf422c-18fa-0310-86e9-fd20926502f2
-rw-r--r--mythtv/libs/libmythtv/avformatdecoder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mythtv/libs/libmythtv/avformatdecoder.cpp b/mythtv/libs/libmythtv/avformatdecoder.cpp
index b72af6d..be1e61c 100644
--- a/mythtv/libs/libmythtv/avformatdecoder.cpp
+++ b/mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -4605,7 +4605,7 @@ bool AvFormatDecoder::DoPassThrough(const AVCodecContext *ctx)
passthru = m_audio->CanDTS();
passthru &= m_audio->CanPassthrough(ctx->sample_rate);
// Will downmix if we can't support the amount of channels
- passthru &= ctx->channels >= (int)m_audio->GetMaxChannels();
+ passthru &= ctx->channels <= (int)m_audio->GetMaxChannels();
passthru &= !internal_vol;
passthru &= !transcoding && !disable_passthru;
// Don't know any cards that support spdif clocked at < 44100