Commit 46ed10ce authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

jss: Avoid potential FPE

(cherry picked from commit 888a34cb)
Signed-off-by: default avatarHugo Beauzée-Luyssen <>
parent 3f53b97a
......@@ -1908,6 +1908,8 @@ static int ParseJSS( vlc_object_t *p_obj, subs_properties_t *p_props,
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;
free( psz_orig );
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment