byte for the alpha component, as it is never used, clarify the code
and prevent bad usage of it.
Originally committed as revision 23834 to svn://svn.ffmpeg.org/ffmpeg/trunk
typedef struct {
const char *name; ///< a string representing the name of the color
- uint8_t rgba_color[4]; ///< RGBA values for the color
+ uint8_t rgb_color[3]; ///< RGB values for the color
} ColorEntry;
static ColorEntry color_table[] = {
av_log(log_ctx, AV_LOG_ERROR, "Cannot find color '%s'\n", color_string);
return AVERROR(EINVAL);
}
- memcpy(rgba_color, entry->rgba_color, 4);
+ memcpy(rgba_color, entry->rgb_color, 3);
}
return 0;