[vlc-devel] [PATCH] Make USF subtitles conform better to spec
Laurent Aimar
fenrir at via.ecp.fr
Sat Jun 30 01:49:29 CEST 2007
On Fri, Jun 22, 2007, Bernie Purcell wrote:
> This patch is a tidied up version of code that was originally submitted
> in a much larger patch. It is still a large patch, but now, at least,
> most of the work centres solely on the subsdec.c module.
> [....]
Is there any comment about this patch ?
If no I will commit it in a few days (3-4, with remarks below fixed).
A few remarks:
- The code that removes multiple-spaces exists in quartztext and subsdec.
Is that wanted ? And if so why it is not also in freetype renderer ?
- memcpy( &ptr[x], &ptr[y], size ) is wrong.
You have to use memmove when source and destination overlaps. It is used in
quartztext and subsdec when removing multiple-spaces
- You can use strlcpy(p,s,l) instead of strncpy( p, s, l); p[l] = 0;
--
fenrir
_______________________________________________
vlc-devel mailing list
vlc-devel at videolan.org
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list