From 22a9d7577f74b9d09a4e5a90af2a9e085a45fc7a Mon Sep 17 00:00:00 2001 From: Andrzej PolatyƄski Date: Fri, 27 Feb 2009 20:43:25 +0100 Subject: videoanalyse: Fix brightness calculation to not only use the first rowstride Fixes bug #573391. --- gst/videosignal/gstvideoanalyse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst/videosignal') diff --git a/gst/videosignal/gstvideoanalyse.c b/gst/videosignal/gstvideoanalyse.c index ee84be32e..8f4ef6c6d 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); } -- cgit v1.2.3