[vlc-commits] [Git][videolan/vlc][master] demux: hls: only force AAC on es demux

Steve Lhomme (@robUx4) gitlab at videolan.org
Sun Jun 25 03:54:40 UTC 2023



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
f272deef by Francois Cartegnie at 2023-06-25T03:29:32+00:00
demux: hls: only force AAC on es demux

shortcuts will enforce wrong profile and
demux will never end

regression by fix 2396e15bd5b261b2c716ff653b5b8e6374be8bba

- - - - -


1 changed file:

- modules/demux/hls/HLSStreams.cpp


Changes:

=====================================
modules/demux/hls/HLSStreams.cpp
=====================================
@@ -195,13 +195,11 @@ AbstractDemuxer *HLSStream::newDemux(vlc_object_t *p_obj, const StreamFormat &fo
     switch(format)
     {
         case StreamFormat::Type::PackedAAC:
-            ret = new Demuxer(p_obj, "aac", out, source);
+            ret = new Demuxer(p_obj, "aac", out, source); /* "es" demuxer cannot probe AAC, need to force */
             break;
-        case StreamFormat::Type::PackedMP3:
-            ret = new Demuxer(p_obj, "mp3", out, source);
-            break;
-        case StreamFormat::Type::PackedAC3:
-            ret = new Demuxer(p_obj, "ac3", out, source);
+        case StreamFormat::Type::PackedMP3: /* MPGA / MP3, needs "es" to probe: do not force */
+        case StreamFormat::Type::PackedAC3: /* AC3 / E-AC3, needs "es" to probe: do not force */
+            ret = new Demuxer(p_obj, "es", out, source);
             break;
 
         case StreamFormat::Type::MPEG2TS:



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f272deef0f543cb8774843783ad703b04d2e34a8

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/f272deef0f543cb8774843783ad703b04d2e34a8
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