[vlc-commits] demux: avi: reject invalid dwRate/dwScale
Francois Cartegnie
git at videolan.org
Wed Dec 20 15:37:16 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Dec 20 10:52:07 2017 +0100| [2b7481316cc45f638c872dd7273e7f5fed66a1e2] | committer: Francois Cartegnie
demux: avi: reject invalid dwRate/dwScale
(cherry picked from commit fbcc7eb12beaad20e736cbdd2311d6bdc10c34fd)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=2b7481316cc45f638c872dd7273e7f5fed66a1e2
---
modules/demux/avi/avi.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 37ec78c89e..d61776de25 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -463,6 +463,11 @@ static int Open( vlc_object_t * p_this )
tk->i_samplesize = p_strh->i_samplesize;
msg_Dbg( p_demux, "stream[%u] rate:%u scale:%u samplesize:%u",
i, tk->i_rate, tk->i_scale, tk->i_samplesize );
+ if( tk->i_scale > tk->i_rate )
+ {
+ free( tk );
+ continue;
+ }
switch( p_strh->i_type )
{
More information about the vlc-commits
mailing list