[vlc-commits] demux: adaptive: do not trust profile/level
    Francois Cartegnie 
    git at videolan.org
       
    Fri Feb 12 14:25:17 UTC 2021
    
    
  
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 12 13:56:24 2021 +0100| [d44e8655384a2c5cbbd0b5deb6eb6c1475d4cf5d] | committer: Francois Cartegnie
demux: adaptive: do not trust profile/level
refs #25459
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d44e8655384a2c5cbbd0b5deb6eb6c1475d4cf5d
---
 modules/demux/adaptive/plumbing/FakeESOutID.cpp | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/modules/demux/adaptive/plumbing/FakeESOutID.cpp b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
index 72b36301d6..ed762fce54 100644
--- a/modules/demux/adaptive/plumbing/FakeESOutID.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
@@ -80,6 +80,10 @@ bool FakeESOutID::isCompatible( const FakeESOutID *p_other ) const
     if((fmt.i_extra > 0) ^ (p_other->fmt.i_extra > 0))
         return false;
 
+    if(fmt.i_profile != p_other->fmt.i_profile ||
+       fmt.i_level != p_other->fmt.i_level)
+        return false;
+
     switch(fmt.i_codec)
     {
         case VLC_CODEC_H264:
    
    
More information about the vlc-commits
mailing list