[vlc-commits] jss: Avoid potential FPE
Hugo Beauzée-Luyssen
git at videolan.org
Thu Dec 7 18:03:28 CET 2017
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Thu Dec 7 18:04:13 2017 +0100| [888a34cb8cffa3fffd5b746873356b6f0290f529] | committer: Hugo Beauzée-Luyssen
jss: Avoid potential FPE
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=888a34cb8cffa3fffd5b746873356b6f0290f529
---
modules/demux/subtitle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/demux/subtitle.c b/modules/demux/subtitle.c
index b1d3558960..87f548290a 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