mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-18 21:35:44 +00:00
ffvideoscale: Fix build warning.
FFMpeg swscale function wants some const pointers.
This commit is contained in:
parent
56172c60af
commit
0b40ac6331
1 changed files with 2 additions and 2 deletions
|
@ -673,8 +673,8 @@ gst_ffmpegscale_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
out_data[i] = GST_BUFFER_DATA (outbuf) + scale->out_offset[i];
|
||||
}
|
||||
|
||||
sws_scale (scale->ctx, in_data, scale->in_stride, 0, scale->in_height,
|
||||
out_data, scale->out_stride);
|
||||
sws_scale (scale->ctx, (const guint8 **) in_data, scale->in_stride, 0,
|
||||
scale->in_height, out_data, scale->out_stride);
|
||||
|
||||
return GST_FLOW_OK;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue