Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/LAVFilters.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2016-06-25 01:52:18 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-06-25 01:52:18 +0300
commit83643ca675c75e3100393086223787d3fa4673b4 (patch)
tree86d3a90ae448763b2096914a34f25e2f435de430 /demuxer
parent25c40a195c0df611792c9bf21e79746ed4b5d9b2 (diff)
Remove dts express hacks, its supported natively now
Diffstat (limited to 'demuxer')
-rw-r--r--demuxer/Demuxers/LAVFStreamInfo.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/demuxer/Demuxers/LAVFStreamInfo.cpp b/demuxer/Demuxers/LAVFStreamInfo.cpp
index cae308eb..4dd58f95 100644
--- a/demuxer/Demuxers/LAVFStreamInfo.cpp
+++ b/demuxer/Demuxers/LAVFStreamInfo.cpp
@@ -57,13 +57,6 @@ CLAVFStreamInfo::~CLAVFStreamInfo()
STDMETHODIMP CLAVFStreamInfo::CreateAudioMediaType(AVFormatContext *avctx, AVStream *avstream)
{
- // Make sure DTS Express has valid settings
- if (avstream->codecpar->codec_id == AV_CODEC_ID_DTS && avstream->codecpar->codec_tag == 0xA2) {
- avstream->codecpar->channels = avstream->codecpar->channels ? avstream->codecpar->channels : 2;
- avstream->codecpar->channel_layout = avstream->codecpar->channel_layout ? avstream->codecpar->channel_layout : av_get_default_channel_layout(avstream->codecpar->channels);
- avstream->codecpar->sample_rate = avstream->codecpar->sample_rate ? avstream->codecpar->sample_rate : 48000;
- }
-
if (avstream->codecpar->codec_tag == 0) {
avstream->codecpar->codec_tag = av_codec_get_tag(mp_wav_taglists, avstream->codecpar->codec_id);
}