ffvideoscale: Fix build warning.

FFMpeg swscale function wants some const pointers.
This commit is contained in:
Julien Moutte 2010-01-15 22:21:42 +01:00
parent 56172c60af
commit 0b40ac6331

View file

@ -673,8 +673,8 @@ gst_ffmpegscale_transform (GstBaseTransform * trans, GstBuffer * inbuf,
out_data[i] = GST_BUFFER_DATA (outbuf) + scale->out_offset[i]; out_data[i] = GST_BUFFER_DATA (outbuf) + scale->out_offset[i];
} }
sws_scale (scale->ctx, in_data, scale->in_stride, 0, scale->in_height, sws_scale (scale->ctx, (const guint8 **) in_data, scale->in_stride, 0,
out_data, scale->out_stride); scale->in_height, out_data, scale->out_stride);
return GST_FLOW_OK; return GST_FLOW_OK;
} }