[vlc-commits] jss: Avoid potential FPE
Hugo Beauzée-Luyssen
git at videolan.org
Thu Dec 7 18:05:17 CET 2017
vlc/vlc-3.0 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 7 18:04:13 2017 +0100| [46ed10ce650e11ecbfaa2c17c479a0a99c39bae7] | committer: Hugo Beauzée-Luyssen
jss: Avoid potential FPE
(cherry picked from commit 888a34cb8cffa3fffd5b746873356b6f0290f529)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=46ed10ce650e11ecbfaa2c17c479a0a99c39bae7
---
modules/demux/subtitle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index 4c6583fe4e..cc03fc4086 100644
--- a/modules/demux/subtitle.c
+++ b/modules/demux/subtitle.c
@@ -1908,6 +1908,8 @@ static int ParseJSS( vlc_object_t *p_obj, subs_properties_t *p_props,
break;
sscanf( &psz_text[shift], "%d", &p_props->jss.i_time_resolution );
+ if( !p_props->jss.i_time_resolution )
+ p_props->jss.i_time_resolution = 30;
break;
}
free( psz_orig );
More information about the vlc-commits
mailing list