subassconvert: improve malformed/unrecognized color handling
commit661a3500796f4dc2c4c0a9b074ce698f7a0987a1
authorUoti Urpala <uau@mplayer2.org>
Tue, 27 Nov 2012 23:40:07 +0000 (28 01:40 +0200)
committerUoti Urpala <uau@mplayer2.org>
Wed, 28 Nov 2012 00:17:05 +0000 (28 02:17 +0200)
tree66b0a7785e4b29a029070051ec2838f287d6606f
parent0f4492ad34c1feec05477a84c7418b7dda768126
subassconvert: improve malformed/unrecognized color handling

When parsing SRT color values, treat font tags specifying unrecognized
color values as valid tags and never show them as text; just use the
default subtitle color as the color specified. Try to parse color
values as hex codes even if they do not have a leading '#'.
sub/subassconvert.c