[vlc-commits] demux: avi: reject 0 scaled tracks
Francois Cartegnie
git at videolan.org
Tue Jul 24 23:57:12 CEST 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Mar 6 14:28:05 2018 +0100| [7f2e931af54dc98527b5919808517199d9dfdee1] | committer: Jean-Baptiste Kempf
demux: avi: reject 0 scaled tracks
(cherry picked from commit b2d52c22b9018d361c43b24f4edcd307c611af55)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=7f2e931af54dc98527b5919808517199d9dfdee1
---
modules/demux/avi/avi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index 75cf8598e7..c48d392e6b 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -466,7 +466,7 @@ 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 )
+ if( tk->i_scale > tk->i_rate || !tk->i_scale || !tk->i_rate )
{
free( tk );
continue;
More information about the vlc-commits
mailing list