video-converter: clamp lines
This commit is contained in:
parent
87d59ac66d
commit
7690d97189
@ -1379,9 +1379,12 @@ get_dest_line (GstLineCache * cache, gint idx, gpointer user_data)
|
|||||||
guint8 *line;
|
guint8 *line;
|
||||||
gint pstride = convert->pack_pstride;
|
gint pstride = convert->pack_pstride;
|
||||||
gint out_x = convert->out_x;
|
gint out_x = convert->out_x;
|
||||||
|
guint cline;
|
||||||
|
|
||||||
GST_DEBUG ("get dest line %d", idx);
|
cline = CLAMP (idx, 0, convert->out_maxheight - 1);
|
||||||
line = FRAME_GET_LINE (convert->dest, idx);
|
|
||||||
|
GST_DEBUG ("get dest line %d", cline);
|
||||||
|
line = FRAME_GET_LINE (convert->dest, cline);
|
||||||
|
|
||||||
if (convert->borderline) {
|
if (convert->borderline) {
|
||||||
gint r_border = (out_x + convert->out_width) * pstride;
|
gint r_border = (out_x + convert->out_width) * pstride;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user