mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
video-converter: don't convert too much
because we do conversion after downscaling we only need to convert the smallest width.
This commit is contained in:
parent
fc5dd035fa
commit
f51bed2a3b
1 changed files with 2 additions and 1 deletions
|
@ -1051,8 +1051,9 @@ video_converter_matrix16 (GstVideoConverter * convert, gpointer pixels)
|
|||
int r, g, b;
|
||||
int y, u, v;
|
||||
guint16 *p = pixels;
|
||||
gint width = MIN (convert->in_width, convert->out_width);
|
||||
|
||||
for (i = 0; i < convert->in_width; i++) {
|
||||
for (i = 0; i < width; i++) {
|
||||
r = p[i * 4 + 1];
|
||||
g = p[i * 4 + 2];
|
||||
b = p[i * 4 + 3];
|
||||
|
|
Loading…
Reference in a new issue