mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
videoanalyse: Fix brightness calculation to not only use the first rowstride
Fixes bug #573391.
This commit is contained in:
parent
c0ad05cec4
commit
22a9d7577f
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue