Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix a bug introduced in SHA1:ad091eccdd.

Under some circumstances, myth's downmixer wouldn't be used even when supposed to
  • Loading branch information...
commit 867829521b8b8c39df68fed0b62910cb4aa7b197 1 parent 909b444
@jyavenard jyavenard authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mythtv/libs/libmythtv/avformatdecoder.cpp
View
6 mythtv/libs/libmythtv/avformatdecoder.cpp
@@ -4538,9 +4538,11 @@ inline bool AvFormatDecoder::DecoderWillDownmix(const AVCodecContext *ctx)
{
// Until ffmpeg properly implements dialnorm
// use Myth internal downmixer if machines has FPU/SSE
- if (!m_audio->CanDownmix() || !AudioOutputUtil::has_hardware_fpu())
+ if (m_audio->CanDownmix() && AudioOutputUtil::has_hardware_fpu())
+ return false;
+ if (!m_audio->CanDownmix())
return true;
-
+ // use ffmpeg only for dolby codecs if we have to
switch (ctx->codec_id)
{
case CODEC_ID_AC3:
Please sign in to comment.
Something went wrong with that request. Please try again.