Skip to content

Commit

Permalink
Fix wrong logic : we do not passthrough only if we do not support the…
Browse files Browse the repository at this point in the history
… number of channels, not if we support it

git-svn-id: http://svn.mythtv.org/svn/trunk@27225 7dbf422c-18fa-0310-86e9-fd20926502f2
  • Loading branch information
jyavenard committed Nov 15, 2010
1 parent 80f5975 commit 32ff8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/libs/libmythtv/avformatdecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 32ff8c8

Please sign in to comment.