mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
Cosmetics: merge "} else" and "if (...) {" lines, less confusing.
Originally committed as revision 23837 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
4cf0b43ac9
commit
9e74966b3f
@ -234,8 +234,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx)
|
|||||||
rgba_color[1] = rgba >> 16;
|
rgba_color[1] = rgba >> 16;
|
||||||
rgba_color[2] = rgba >> 8;
|
rgba_color[2] = rgba >> 8;
|
||||||
rgba_color[3] = rgba;
|
rgba_color[3] = rgba;
|
||||||
} else
|
} else if (!strncmp(color_string2, "0x", 2)) {
|
||||||
if (!strncmp(color_string2, "0x", 2)) {
|
|
||||||
char *tail;
|
char *tail;
|
||||||
int len = strlen(color_string2);
|
int len = strlen(color_string2);
|
||||||
unsigned int rgba = strtoul(color_string2, &tail, 16);
|
unsigned int rgba = strtoul(color_string2, &tail, 16);
|
||||||
|
Loading…
Reference in New Issue
Block a user