François Cartegnie pushed to branch master at VideoLAN / VLC


Commits:
75f57e3a by Francois Cartegnie at 2023-03-27T14:57:29+00:00
demux: hls: fix lazy loaded playlists timescale

- - - - -
fcd6a9b6 by Francois Cartegnie at 2023-03-27T14:57:29+00:00
demux: hls: use internal max resolution define instead of raw value

- - - - -


1 changed file:

- modules/demux/hls/playlist/Parser.cpp


Changes:

=====================================
modules/demux/hls/playlist/Parser.cpp
=====================================
@@ -101,6 +101,8 @@ HLSRepresentation * 
M3U8Parser::createRepresentation(BaseAdaptationSet *adaptSet
     HLSRepresentation *rep = new (std::nothrow) HLSRepresentation(adaptSet);
     if(rep)
     {
+        rep->addAttribute(new TimescaleAttr(Timescale(CLOCK_FREQ)));
+
         if(uriAttr)
         {
             std::string uri;
@@ -154,7 +156,6 @@ void M3U8Parser::createAndFillRepresentation(vlc_object_t 
*p_obj, BaseAdaptation
     HLSRepresentation *rep  = createRepresentation(adaptSet, tag);
     if(rep)
     {
-        rep->addAttribute(new TimescaleAttr(Timescale(1000000)));
         parseSegments(p_obj, rep, tagslist);
         adaptSet->addRepresentation(rep);
     }



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/0f19973e396eecbae2c0483213413d8e7d4aadf6...fcd6a9b637c15d49bb7be23e10d5d3085b5a7c72

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/0f19973e396eecbae2c0483213413d8e7d4aadf6...fcd6a9b637c15d49bb7be23e10d5d3085b5a7c72
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to