From 4fb3f2519cfaf5add427c52b606b4b4278462633 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 16 Oct 2009 12:33:04 +0100 Subject: [PATCH] jpegdec: fix regression in indirect decode path 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/jpeg/gstjpegdec.c b/ext/jpeg/gstjpegdec.c index b02434b..2bea646 100644 --- a/ext/jpeg/gstjpegdec.c +++ b/ext/jpeg/gstjpegdec.c @@ -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); -- 2.7.4