summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Yves Avenard <jyavenard@mythtv.org>2010-11-15 08:22:42 (GMT)
committer Jean-Yves Avenard <jyavenard@mythtv.org>2010-11-15 08:22:42 (GMT)
commitae750cc74d4899c20e61a5e25f34ab5d0de32464 (patch)
treea5158ca788ec115ee8febd67ce6bd516180193cb
parent03d161ddaee9f4944bf995b18a6afa141eccf2e1 (diff)
Backport r27225, fix passthrough
git-svn-id: http://svn.mythtv.org/svn/branches/release-0-24-fixes@27226 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 293a475..3605048 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