[vlc-devel] [PATCH] demux/hls: enable avformat for MPEG2TS

Rémi Denis-Courmont remi at remlab.net
Fri Jul 7 09:27:02 CEST 2017


Le 7 juillet 2017 07:06:05 GMT+03:00, Zhao Zhili <wantlamy at gmail.com> a écrit :
>---
> modules/demux/hls/HLSStreams.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
>diff --git a/modules/demux/hls/HLSStreams.cpp
>b/modules/demux/hls/HLSStreams.cpp
>index aaea520..089b87b 100644
>--- a/modules/demux/hls/HLSStreams.cpp
>+++ b/modules/demux/hls/HLSStreams.cpp
>@@ -78,7 +78,7 @@ AbstractDemuxer * HLSStream::createDemux(const
>StreamFormat &format)
>             break;
>
>         case StreamFormat::MPEG2TS:
>-            ret = new Demuxer(p_realdemux, "ts",
>fakeesout->getEsOut(),
>demuxersource);
>+            ret = new Demuxer(p_realdemux, "ts,avformat",
>fakeesout->getEsOut(), demuxersource);
>             if(ret)
>                 ret->setCanDetectSwitches(false); /* HLS and unique
>PAT/PMT versions */
>             break;
>-- 
>2.7.4

Nihao,

I believe that this (HLS) is not the only site assume the dvbpsi plugin is available. If we want to fallback to avformat, then avformat should probably provide "ts" as an alias, while keeping a lower priority than dvbpsi.
-- 
Rémi Denis-Courmont
Typed on an inconvenient virtual keyboard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170707/900d374c/attachment.html>


More information about the vlc-devel mailing list