mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 07:16:55 +00:00
video-format: minor pack_YVYU optimisation
Re-use already calculated line offset.
This commit is contained in:
parent
ede804041c
commit
2f6f0ee214
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue