aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2018-07-02 13:45:38 -0300
committerPedro Arthur <bygrandao@gmail.com>2018-07-02 13:45:38 -0300
commit54b425a7fad3e35ebb4757108fef5e3ee0e3d957 (patch)
tree790ea6df269aeae79c655fafb61b44aca878addb
parent575b7189908e1cfa55104b0d2c7c9f6ea30ca2dc (diff)
downloadffmpeg-54b425a7fad3e35ebb4757108fef5e3ee0e3d957.tar.gz
libavfilter: vf_sr.c remove warnings
-rw-r--r--libavfilter/vf_sr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c
index 196567afda..2107e5a4c8 100644
--- a/libavfilter/vf_sr.c
+++ b/libavfilter/vf_sr.c
@@ -268,7 +268,7 @@ static int filter_frame(AVFilterLink* inlink, AVFrame* in)
out->width = sr_context->output.width;
switch (sr_context->model_type){
case SRCNN:
- sws_scale(sr_context->sws_context, in->data, in->linesize,
+ sws_scale(sr_context->sws_context, (const uint8_t **)in->data, in->linesize,
0, sr_context->sws_slice_h, out->data, out->linesize);
td.data = out->data[0];
td.data_linesize = out->linesize[0];
@@ -277,9 +277,9 @@ static int filter_frame(AVFilterLink* inlink, AVFrame* in)
break;
case ESPCN:
if (sr_context->sws_context){
- sws_scale(sr_context->sws_context, in->data + 1, in->linesize + 1,
+ sws_scale(sr_context->sws_context, (const uint8_t **)(in->data + 1), in->linesize + 1,
0, sr_context->sws_slice_h, out->data + 1, out->linesize + 1);
- sws_scale(sr_context->sws_context, in->data + 2, in->linesize + 2,
+ sws_scale(sr_context->sws_context, (const uint8_t **)(in->data + 2), in->linesize + 2,
0, sr_context->sws_slice_h, out->data + 2, out->linesize + 2);
}
td.data = in->data[0];