mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-18 04:18:20 +00:00
xvid: Fix compilation warning
This commit is contained in:
parent
06595a1fd2
commit
692cd5ef7b
|
@ -312,13 +312,13 @@ gst_xvid_image_fill (xvid_image_t * im, void *ptr, gint csp,
|
||||||
im->stride[0] = stride;
|
im->stride[0] = stride;
|
||||||
im->plane[0] = ptr;
|
im->plane[0] = ptr;
|
||||||
/* chroma */
|
/* chroma */
|
||||||
im->plane[1] = im->plane[0] + (stride * h2);
|
im->plane[1] = ((guint8 *) im->plane[0]) + (stride * h2);
|
||||||
size += stride * height;
|
size += stride * height;
|
||||||
stride = GST_ROUND_UP_8 (width) / 2;
|
stride = GST_ROUND_UP_8 (width) / 2;
|
||||||
h2 = GST_ROUND_UP_2 (height) / 2;
|
h2 = GST_ROUND_UP_2 (height) / 2;
|
||||||
im->stride[1] = stride;
|
im->stride[1] = stride;
|
||||||
|
|
||||||
im->plane[2] = im->plane[1] + (stride * h2);
|
im->plane[2] = ((guint8 *) im->plane[1]) + (stride * h2);
|
||||||
im->stride[2] = stride;
|
im->stride[2] = stride;
|
||||||
size += 2 * (stride * h2);
|
size += 2 * (stride * h2);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue