summaryrefslogtreecommitdiffstats
path: root/gst
diff options
context:
space:
mode:
authorAndrzej Polatyński <apolatynski@gmail.com>2009-02-27 20:43:25 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-02-27 20:44:20 +0100
commit22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a (patch)
treea535574e2e4deec8081c4e6f155cb1a962e3f4ad /gst
parentc0ad05cec444776cf69366b98664e8e9affefd5d (diff)
downloadgst-plugins-bad-22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a.tar.gz
gst-plugins-bad-22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a.tar.bz2
gst-plugins-bad-22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a.zip
videoanalyse: Fix brightness calculation to not only use the first rowstride
Fixes bug #573391.
Diffstat (limited to 'gst')
-rw-r--r--gst/videosignal/gstvideoanalyse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/videosignal/gstvideoanalyse.c b/gst/videosignal/gstvideoanalyse.c
index ee84be32..8f4ef6c6 100644
--- a/gst/videosignal/gstvideoanalyse.c
+++ b/gst/videosignal/gstvideoanalyse.c
@@ -200,7 +200,7 @@ gst_video_analyse_420 (GstVideoAnalyse * videoanalyse, guint8 * data,
/* do brightness as average of pixel brightness in 0.0 to 1.0 */
for (i = 0; i < height; i++) {
for (j = 0; j < width; j++) {
- sum += data[j];
+ sum += d[j];
}
d += GST_VIDEO_I420_Y_ROWSTRIDE (width);
}