diff options
Diffstat (limited to 'demuxer/Demuxers/LAVFDemuxer.cpp')
-rw-r--r-- | demuxer/Demuxers/LAVFDemuxer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/demuxer/Demuxers/LAVFDemuxer.cpp b/demuxer/Demuxers/LAVFDemuxer.cpp index deb032cf..1c28c839 100644 --- a/demuxer/Demuxers/LAVFDemuxer.cpp +++ b/demuxer/Demuxers/LAVFDemuxer.cpp @@ -596,11 +596,8 @@ STDMETHODIMP CLAVFDemuxer::InitAVFormat(LPCOLESTR pszFileName, BOOL bForce) av_opt_set_int(m_avFormat, "correct_ts_overflow", !m_pBluRay, 0); - // TODO: AVFMT_FLAG_KEEP_SIDE_DATA should be ON for all formats - if (m_bMatroska || m_bMPEGTS) - m_avFormat->flags |= AVFMT_FLAG_KEEP_SIDE_DATA; - else - m_avFormat->flags &= ~AVFMT_FLAG_KEEP_SIDE_DATA; + // preserve side-data in the packets properly + m_avFormat->flags |= AVFMT_FLAG_KEEP_SIDE_DATA; m_timeOpening = time(nullptr); int ret = avformat_find_stream_info(m_avFormat, nullptr); |