[vlc-commits] [Git][videolan/vlc][3.0.x] demux: subrip: fix scanf
Thomas Guillem (@tguillem)
gitlab at videolan.org
Mon Sep 14 09:26:43 UTC 2026
Thomas Guillem pushed to branch 3.0.x at VideoLAN / VLC
Commits:
b922d88a by François Cartegnie at 2026-09-14T09:17:34+00:00
demux: subrip: fix scanf
regression by 68eb7869748270ba72d58aafd37162d8f9ca994f
- - - - -
1 changed file:
- modules/demux/subtitle.c
Changes:
=====================================
modules/demux/subtitle.c
=====================================
@@ -1211,7 +1211,7 @@ static int subtitle_ParseSubViewerTiming( subtitle_t *p_subtitle,
int h1, m1, s1, d1, h2, m2, s2, d2;
if( sscanf( s, "%d:%d:%d.%d,%d:%d:%d.%d",
- &h1, &m1, &s1, &d1, &h2, &m2, &s2, &d2) == 8 )
+ &h1, &m1, &s1, &d1, &h2, &m2, &s2, &d2) != 8 )
return VLC_EGENERIC;
p_subtitle->i_start = vlc_tick_from_HMS( h1, m1, s1 ) +
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b922d88a2096d1190fc20cda537c86d0488e9524
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/b922d88a2096d1190fc20cda537c86d0488e9524
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list