mirror of https://git.ffmpeg.org/ffmpeg.git
Log with level AV_LOG_ERROR if av_parse_color() cannot recognize a
color. Originally committed as revision 18868 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
76499b9ff1
commit
cec8e5f76a
|
@ -247,7 +247,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx)
|
||||||
sizeof(ColorEntry),
|
sizeof(ColorEntry),
|
||||||
color_table_compare);
|
color_table_compare);
|
||||||
if (!entry) {
|
if (!entry) {
|
||||||
av_log(log_ctx, AV_LOG_DEBUG, "Cannot find color '%s'\n", color_string);
|
av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
memcpy(rgba_color, entry->rgba_color, 4);
|
memcpy(rgba_color, entry->rgba_color, 4);
|
||||||
|
|
Loading…
Reference in New Issue