gst/videofilter/gstgamma.c: Fix typo that modified the alpha channel and caused a warning. (bug #136192)

Original commit message from CVS:
reviewed by David Schleef
* gst/videofilter/gstgamma.c: (gst_gamma_rgb32): Fix typo that
modified the alpha channel and caused a warning. (bug #136192)
This commit is contained in:
David Schleef 2004-03-04 20:18:44 +00:00
parent e365bb4ca3
commit c5604458c4
2 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,10 @@
2004-03-04 <kost@imn.htwk-leipzig.de>
reviewed by David Schleef
* gst/videofilter/gstgamma.c: (gst_gamma_rgb32): Fix typo that
modified the alpha channel and caused a warning. (bug #136192)
2004-04-03 Christian Schaller <Uraeus@gnome.org> 2004-04-03 Christian Schaller <Uraeus@gnome.org>
* gst-plugins.spec.in: * gst-plugins.spec.in:

View file

@ -407,7 +407,8 @@ static void gst_gamma_rgb32(GstVideofilter *videofilter, void *dest, void *src)
*cdest++ = gamma->gamma_table_b[*csrc++]; *cdest++ = gamma->gamma_table_b[*csrc++];
*cdest++ = gamma->gamma_table_g[*csrc++]; *cdest++ = gamma->gamma_table_g[*csrc++];
*cdest++ = gamma->gamma_table_r[*csrc++]; *cdest++ = gamma->gamma_table_r[*csrc++];
*cdest++; *csrc++; cdest++;
csrc++;
i = i + 4; i = i + 4;
} }
} else { } else {
@ -416,7 +417,8 @@ static void gst_gamma_rgb32(GstVideofilter *videofilter, void *dest, void *src)
if ((i % 4) != 3) if ((i % 4) != 3)
*cdest++ = gamma->gamma_table[*csrc++]; *cdest++ = gamma->gamma_table[*csrc++];
else { else {
*cdest++; *csrc++; cdest++;
csrc++;
} }
i++; i++;
} }