[vlc-commits] demux: adaptive: do not recycle mp4a if extradata differs
Francois Cartegnie
git at videolan.org
Thu Oct 22 20:41:22 CEST 2020
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct 22 19:59:40 2020 +0200| [c7019f76cd1448127395bf98cf928f30443ea08c] | committer: Francois Cartegnie
demux: adaptive: do not recycle mp4a if extradata differs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7019f76cd1448127395bf98cf928f30443ea08c
---
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 8720e97c90..c2fb35aeda 100644
--- a/modules/demux/adaptive/plumbing/FakeESOutID.cpp
+++ b/modules/demux/adaptive/plumbing/FakeESOutID.cpp
@@ -102,6 +102,10 @@ bool FakeESOutID::isCompatible( const FakeESOutID *p_other ) const
/* Reject audio streams with different or unknown rates */
if(fmt.audio.i_rate != p_other->fmt.audio.i_rate || !fmt.audio.i_rate)
return false;
+ if(fmt.i_extra &&
+ (fmt.i_extra != p_other->fmt.i_extra ||
+ memcmp(fmt.p_extra, p_other->fmt.p_extra, fmt.i_extra)))
+ return false;
}
return es_format_IsSimilar( &p_other->fmt, &fmt );
More information about the vlc-commits
mailing list