gst-plugins-bad: Revert "colorspace: Fix out-of-bound errors for v210"

David Schleef ds at kemper.freedesktop.org
Sun Jan 22 17:00:14 PST 2012


Module: gst-plugins-bad
Branch: master
Commit: de562a194f901bb7d97f02f0210becbe05bffb41
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=de562a194f901bb7d97f02f0210becbe05bffb41

Author: David Schleef <ds at schleef.org>
Date:   Sun Jan 22 16:58:59 2012 -0800

Revert "colorspace: Fix out-of-bound errors for v210"

This reverts commit 3b8b87cb6c217b9f0b52cfa3079c4a36afd1c424.
Untested commit was accidentally pushed.

---

 gst/colorspace/colorspace.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/colorspace/colorspace.c b/gst/colorspace/colorspace.c
index c18d331..ad7ce2e 100644
--- a/gst/colorspace/colorspace.c
+++ b/gst/colorspace/colorspace.c
@@ -412,7 +412,7 @@ putline_v210 (ColorspaceConvert * convert, guint8 * dest, const guint8 * src,
   int i;
   guint8 *destline = FRAME_GET_LINE (dest, 0, j);
 
-  for (i = 0; i < convert->width; i += 6) {
+  for (i = 0; i < convert->width + 5; i += 6) {
     guint32 a0, a1, a2, a3;
     guint16 y0, y1, y2, y3, y4, y5;
     guint16 u0, u1, u2;
@@ -518,7 +518,7 @@ putline16_v210 (ColorspaceConvert * convert, guint8 * dest, const guint16 * src,
   int i;
   guint8 *destline = FRAME_GET_LINE (dest, 0, j);
 
-  for (i = 0; i < convert->width; i += 6) {
+  for (i = 0; i < convert->width + 5; i += 6) {
     guint32 a0, a1, a2, a3;
     guint16 y0, y1, y2, y3, y4, y5;
     guint16 u0, u1, u2;



More information about the gstreamer-commits mailing list