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-12-09 01:35:55 +0300
committerHendrik Leppkes <h.leppkes@gmail.com>2016-12-09 01:35:55 +0300
commit6a03ce4a405e7fad4231201433df12099ff90bb4 (patch)
treef1543e12b2639f9895981719effae3b6a41d6bd5 /demuxer
parent51eca509ef71adaa3ca938f41fa4f6198432cae9 (diff)
avcodec: use strict h264 handling on file-based playback with LAV Splitter
Keep using the old logic for streaming playback or any other source filters where we don't know where the data coming from.
Diffstat (limited to 'demuxer')
-rw-r--r--demuxer/Demuxers/LAVFDemuxer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/demuxer/Demuxers/LAVFDemuxer.cpp b/demuxer/Demuxers/LAVFDemuxer.cpp
index 18b42de2..b07912e6 100644
--- a/demuxer/Demuxers/LAVFDemuxer.cpp
+++ b/demuxer/Demuxers/LAVFDemuxer.cpp
@@ -2483,6 +2483,9 @@ STDMETHODIMP_(DWORD) CLAVFDemuxer::GetStreamFlags(DWORD dwStream)
if (m_bMatroska && (st->codecpar->codec_id == AV_CODEC_ID_RV30 || st->codecpar->codec_id == AV_CODEC_ID_RV40))
dwFlags |= LAV_STREAM_FLAG_RV34_MKV;
+ if (m_avFormat->flags & AVFMT_FLAG_NETWORK)
+ dwFlags |= LAV_STREAM_FLAG_LIVE;
+
return dwFlags;
}