[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: demux: hls: fix lazy loaded playlists timescale

Jean-Baptiste Kempf (@jbk) gitlab at videolan.org
Wed Mar 29 21:52:03 UTC 2023



Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC


Commits:
f31228b9 by Francois Cartegnie at 2023-03-27T18:02:05+02:00
demux: hls: fix lazy loaded playlists timescale

(cherry picked from commit 75f57e3a9546dc3d9f4d696f59802af5bc19b539)

- - - - -
d6a0d3b2 by Francois Cartegnie at 2023-03-27T18:02:06+02:00
demux: hls: use internal max resolution define instead of raw value

(cherry picked from commit fcd6a9b637c15d49bb7be23e10d5d3085b5a7c72)

- - - - -


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/ce21489a3bc03b89c46b155d2151531eb83860e9...d6a0d3b2585eb118475f31c7d47334366bba28cd

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


VideoLAN code repository instance


More information about the vlc-commits mailing list