diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-07-11 01:02:24 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2016-07-11 01:02:53 +0300 |
commit | adad395f60fdb4b8566842d603237982650451ef (patch) | |
tree | d5428dc6b1af16dca9650fb0f9ff2d1a6e7e4d53 /demuxer/Demuxers/LAVFDemuxer.cpp | |
parent | 45f77f25bef884df373da65bbf303ac6b06a1975 (diff) |
Export FFMpeg sidedata in IMediaSampleSideData
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); |