summaryrefslogtreecommitdiff
path: root/libavfilter/vf_sr.c
diff options
context:
space:
mode:
authorPedro Arthur <bygrandao@gmail.com>2018-09-20 11:48:20 -0300
committerPedro Arthur <bygrandao@gmail.com>2018-09-21 11:22:06 -0300
commit1cb101f60d3b432355e548b1c8a8c9448686dc9f (patch)
treec6e47f9dc3d9d5322061c79c9c91c49ad0d16938 /libavfilter/vf_sr.c
parent50d9c85358a1b2c5619720b21501c0ee242059cf (diff)
avfilter/vf_sr: Fix coverity CID 1439584
Diffstat (limited to 'libavfilter/vf_sr.c')
-rw-r--r--libavfilter/vf_sr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_sr.c b/libavfilter/vf_sr.c
index c1ae6c5ff2..077ccc799c 100644
--- a/libavfilter/vf_sr.c
+++ b/libavfilter/vf_sr.c
@@ -250,7 +250,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
return AVERROR(EIO);
}
- sws_scale(sr_context->sws_contexts[2], (const uint8_t **)(&sr_context->output.data),
+ sws_scale(sr_context->sws_contexts[2], (const uint8_t *[4]){(const uint8_t *)sr_context->output.data, 0, 0, 0},
(const int[4]){sr_context->sws_output_linesize, 0, 0, 0},
0, out->height, (uint8_t * const*)out->data, out->linesize);