From 2f6f0ee2149e83841e0e7cb8c69197e385db3d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Thu, 5 Sep 2013 18:33:28 +0100 Subject: [PATCH] video-format: minor pack_YVYU optimisation Re-use already calculated line offset. --- gst-libs/gst/video/video-format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/video-format.c b/gst-libs/gst/video/video-format.c index 6d1328697b..72a9594b45 100644 --- a/gst-libs/gst/video/video-format.c +++ b/gst-libs/gst/video/video-format.c @@ -235,7 +235,7 @@ pack_YVYU (const GstVideoFormatInfo * info, GstVideoPackFlags flags, guint8 *line = GET_LINE (y); const guint8 *ayuv = src; - video_orc_pack_YVYU (GET_LINE (y), src, width / 2); + video_orc_pack_YVYU (line, src, width / 2); if (width & 1) { gint i = width - 1;