Commit 28317877 authored by François Cartegnie's avatar François Cartegnie 🤞

codec: webvtt: check timestamp validity

parent 86a0b361
......@@ -240,7 +240,7 @@ void webvtt_text_parser_Feed( webvtt_text_parser_t *p, char *psz_line )
mtime_t i_start, i_stop;
if( webvtt_scan_time( p->reads[1], &i_start ) &&
webvtt_scan_time( psz_split + 5, &i_stop ) )
webvtt_scan_time( psz_split + 5, &i_stop ) && i_start <= i_stop )
{
const char *psz_attrs = strchr( psz_split + 5 + 9, ' ' );
p->p_cue = ( p->pf_get_cue ) ? p->pf_get_cue( p->priv ) : NULL;
......
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