mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
videobox: fix border filling for planar YUV formats
We would get a green border instead of a black one, for example. https://bugzilla.gnome.org/show_bug.cgi?id=684991
This commit is contained in:
parent
ef6c16a32e
commit
efaa80fbc6
1 changed files with 2 additions and 2 deletions
|
@ -695,7 +695,7 @@ fill_planar_yuv (GstVideoBoxFill fill_type, guint b_alpha,
|
||||||
memset (destU, empty_pixel[1], strideU * heightU);
|
memset (destU, empty_pixel[1], strideU * heightU);
|
||||||
} else if (heightU) {
|
} else if (heightU) {
|
||||||
for (; heightU; --heightU) {
|
for (; heightU; --heightU) {
|
||||||
memset (destU, empty_pixel[0], widthY);
|
memset (destU, empty_pixel[1], widthU);
|
||||||
destU += strideU;
|
destU += strideU;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -703,7 +703,7 @@ fill_planar_yuv (GstVideoBoxFill fill_type, guint b_alpha,
|
||||||
memset (destV, empty_pixel[2], strideV * heightV);
|
memset (destV, empty_pixel[2], strideV * heightV);
|
||||||
} else if (heightV) {
|
} else if (heightV) {
|
||||||
for (; heightV; --heightV) {
|
for (; heightV; --heightV) {
|
||||||
memset (destV, empty_pixel[0], widthV);
|
memset (destV, empty_pixel[2], widthV);
|
||||||
destV += strideV;
|
destV += strideV;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue