jpegdec: fix regression in indirect decode path
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 16 Oct 2009 11:33:04 +0000 (12:33 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 16 Oct 2009 12:36:42 +0000 (13:36 +0100)
Revert variable name back to what it was before the G_LIKELY was
added (in commit 69c24fb9). The code works better that way.

ext/jpeg/gstjpegdec.c

index b02434b..2bea646 100644 (file)
@@ -707,7 +707,7 @@ gst_jpeg_dec_decode_indirect (GstJpegDec * dec, guchar * base[3],
         memcpy (base[0], y_rows[j], I420_Y_ROWSTRIDE (width));
         if (base[0] < last[0])
           base[0] += I420_Y_ROWSTRIDE (width);
-        if (G_LIKELY (r_h == 2)) {
+        if (G_LIKELY (r_v == 2)) {
           memcpy (base[0], y_rows[j + 1], I420_Y_ROWSTRIDE (width));
           if (base[0] < last[0])
             base[0] += I420_Y_ROWSTRIDE (width);