Re: [PATCH] add m2ts mode stream format

Zhao Zhili <[email protected]>
Newsgroups gmane.comp.video.videolan.vlc.devel
Message-ID <[email protected]>
Hi,

On Wed, 2022-12-28 at 08:45 +0800, yanyingjun via vlc-devel wrote:
> ---
>  modules/demux/adaptive/StreamFormat.cpp | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/modules/demux/adaptive/StreamFormat.cpp
> b/modules/demux/adaptive/StreamFormat.cpp
> index 03502a80f1..b2a9a30c29 100644
> --- a/modules/demux/adaptive/StreamFormat.cpp
> +++ b/modules/demux/adaptive/StreamFormat.cpp
> @@ -140,6 +140,8 @@ StreamFormat::StreamFormat(const void *data_,
> size_t sz)
>  
>      if(sz > 188 && data[0] == 0x47 && data[188] == 0x47)
>          type = StreamFormat::Type::MPEG2TS;
> +    else if(sz > 196 && data[4] == 0x47 && data[196] == 0x47) /*
> m2ts mode */
> +        type = StreamFormat::Type::MPEG2TS;
>      else if(sz > 8 && (!memcmp(&moov,    &data[4], 4) ||
>                         !memcmp(&moov[4], &data[4], 4) ||
>                         !memcmp(&moov[8], &data[4], 4) ||

I don't think it's valid HLS streams. Where does those streams come
from?

Send MR to https://code.videolan.org/videolan/vlc next time.

_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
https://mailman.videolan.org/listinfo/vlc-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.