diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-27 22:35:32 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-06-27 22:35:32 +0000 |
commit | 8e094dd6674e3fd503e1fc2f68883fd3f73a5bd1 (patch) | |
tree | be89bdedd715a5d6e4b6b375c1a23be2fa3ed30c /libavfilter | |
parent | 7447204d2d4248b4c16249480e42b5f7b40da272 (diff) | |
download | ffmpeg-8e094dd6674e3fd503e1fc2f68883fd3f73a5bd1.tar.gz |
Rename ColorEntry.rgba_color to rgb_color and do not reserve a fourth
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
Diffstat (limited to 'libavfilter')
-rw-r--r-- | libavfilter/parseutils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/parseutils.c b/libavfilter/parseutils.c index 53f03dccc1..07fa5b880f 100644 --- a/libavfilter/parseutils.c +++ b/libavfilter/parseutils.c @@ -65,7 +65,7 @@ char *av_get_token(const char **buf, const char *term) 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[] = { @@ -251,7 +251,7 @@ int av_parse_color(uint8_t *rgba_color, const char *color_string, void *log_ctx) 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; |