[vlc-commits] demux: adaptive: do not trust profile/level
Francois Cartegnie
git at videolan.org
Tue Feb 16 13:23:43 UTC 2021
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Feb 12 13:56:24 2021 +0100| [09cc13c481c03a2c4d0cb553d05886b89ab4a91b] | committer: Francois Cartegnie
demux: adaptive: do not trust profile/level
refs #25459
(cherry picked from commit d44e8655384a2c5cbbd0b5deb6eb6c1475d4cf5d)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=09cc13c481c03a2c4d0cb553d05886b89ab4a91b
---
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 c2fb35aeda..cf6f9506b4 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