[FFmpeg-cvslog] avfilter/vf_sr: Fix coverity CID 1439584

Pedro Arthur git at videolan.org
Fri Sep 21 17:34:10 EEST 2018


ffmpeg | branch: master | Pedro Arthur <bygrandao at gmail.com> | Thu Sep 20 11:48:20 2018 -0300| [1cb101f60d3b432355e548b1c8a8c9448686dc9f] | committer: Pedro Arthur

avfilter/vf_sr: Fix coverity CID 1439584

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1cb101f60d3b432355e548b1c8a8c9448686dc9f
---

 libavfilter/vf_sr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 



More information about the ffmpeg-cvslog mailing list