[FFmpeg-devel] av_parse_color() more improvement

Aurelien Jacobs aurel
Sat Nov 13 00:27:49 CET 2010


Attached patch adds one more little improvement to av_parse_color(), to
finally make it fully usable in my upcoming SubRip decoder.
It simply allows specifying the color_string length so that the SubRip
decoder can just point color_string into the SubRip formatted text
buffer instead of making a copy of the color string with the sole
purpose to null-terminate it.
Anyway, av_parse_color() already makes a copy of the string so better not
force the caller to make one more copy.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: parse_color_len.diff
Type: text/x-diff
Size: 4117 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101113/c7162a64/attachment.diff>

More information about the ffmpeg-devel mailing list