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

Zhao Zhili wantlamy at gmail.com
Fri Jul 7 10:07:37 CEST 2017


On Fri, Jul 7, 2017 at 3:27 PM, Rémi Denis-Courmont <remi at remlab.net> wrote:

> 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;
>>
>
> 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
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
>
Thanks for your review, I will do it right now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20170707/dae386ad/attachment-0001.html>


More information about the vlc-devel mailing list