video-format: minor pack_YVYU optimisation

Re-use already calculated line offset.
This commit is contained in:
Tim-Philipp Müller 2013-09-05 18:33:28 +01:00
parent ede804041c
commit 2f6f0ee214

View file

@ -235,7 +235,7 @@ pack_YVYU (const GstVideoFormatInfo * info, GstVideoPackFlags flags,
guint8 *line = GET_LINE (y); guint8 *line = GET_LINE (y);
const guint8 *ayuv = src; 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) { if (width & 1) {
gint i = width - 1; gint i = width - 1;