From c5604458c4f3b1666e6a8c8ea2be95666ca00520 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Thu, 4 Mar 2004 20:18:44 +0000 Subject: [PATCH] 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) --- ChangeLog | 7 +++++++ gst/videofilter/gstgamma.c | 6 ++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c287350..0e22b36 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-03-04 + + 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 * gst-plugins.spec.in: diff --git a/gst/videofilter/gstgamma.c b/gst/videofilter/gstgamma.c index d6a5d2c..8f4ff28 100644 --- a/gst/videofilter/gstgamma.c +++ b/gst/videofilter/gstgamma.c @@ -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_g[*csrc++]; *cdest++ = gamma->gamma_table_r[*csrc++]; - *cdest++; *csrc++; + cdest++; + csrc++; i = i + 4; } } else { @@ -416,7 +417,8 @@ static void gst_gamma_rgb32(GstVideofilter *videofilter, void *dest, void *src) if ((i % 4) != 3) *cdest++ = gamma->gamma_table[*csrc++]; else { - *cdest++; *csrc++; + cdest++; + csrc++; } i++; } -- 2.7.4