[vlc-devel] Possible Improvement

tony hugh1234 at mail.ustc.edu.cn
Tue Aug 11 03:20:39 CEST 2015


The file modules/demux/subtitle.c has a such line
in ParseSubRipSubViewer:

while( ( p = strstr( psz_text, "[br]" ) ) )

If we change it to

while( ( p = strstr( psz_text + i_old, "[br]" ) ) )

,I think there will be a performance improvement.
Because under all circumstances,
the content before i_old has already been searched,
and separated by a '\n'.




More information about the vlc-devel mailing list