From c55f43f413dff8740f99d684e8879835d4409920 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Tue, 2 Sep 2014 12:23:18 +0200 Subject: Added #ifdefs for AV_CODEC_IDs, should fix bug #1898 Added logo for ProSieben MAXX HD from MegaV0lt --- command/markad-standalone.cpp | 39 ++++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 19 deletions(-) (limited to 'command/markad-standalone.cpp') diff --git a/command/markad-standalone.cpp b/command/markad-standalone.cpp index 70e6d84..4ca71cd 100644 --- a/command/markad-standalone.cpp +++ b/command/markad-standalone.cpp @@ -320,28 +320,29 @@ void cMarkAdStandalone::CheckStart() } macontext.Info.Channels=macontext.Audio.Info.Channels; - if (macontext.Info.Channels==6) - { - isyslog("DolbyDigital5.1 audio detected. logo/border/aspect detection disabled"); - bDecodeVideo=false; - macontext.Video.Options.IgnoreAspectRatio=true; - macontext.Video.Options.IgnoreLogoDetection=true; - marks.Del(MT_ASPECTSTART); - marks.Del(MT_ASPECTSTOP); - // start mark must be around istart - begin=marks.GetAround(INT_MAX,iStart,MT_CHANNELSTART); - } - else - { - if (macontext.Info.DPid.Num) + if (macontext.Config->DecodeAudio) { + if (macontext.Info.Channels==6) { - if (macontext.Info.Channels) - isyslog("broadcast with %i audio channels, disabling AC3 decoding",macontext.Info.Channels); - macontext.Info.DPid.Num=0; - demux->DisableDPid(); + isyslog("DolbyDigital5.1 audio detected. logo/border/aspect detection disabled"); + bDecodeVideo=false; + macontext.Video.Options.IgnoreAspectRatio=true; + macontext.Video.Options.IgnoreLogoDetection=true; + marks.Del(MT_ASPECTSTART); + marks.Del(MT_ASPECTSTOP); + // start mark must be around istart + begin=marks.GetAround(INT_MAX,iStart,MT_CHANNELSTART); + } + else + { + if (macontext.Info.DPid.Num) + { + if (macontext.Info.Channels) + isyslog("broadcast with %i audio channels, disabling AC3 decoding",macontext.Info.Channels); + macontext.Info.DPid.Num=0; + demux->DisableDPid(); + } } } - if ((macontext.Info.AspectRatio.Num) && ((macontext.Info.AspectRatio.Num!= macontext.Video.Info.AspectRatio.Num) || (macontext.Info.AspectRatio.Den!= macontext.Video.Info.AspectRatio.Den))) -- cgit v1.2.3