summaryrefslogtreecommitdiff
path: root/libavfilter/dnn
diff options
context:
space:
mode:
authorGuo Yejun <yejun.guo@intel.com>2021-05-29 21:19:39 +0800
committerGuo Yejun <yejun.guo@intel.com>2021-06-05 17:15:29 +0800
commit3ac7d994280e913f41a246014d3cfb76070a6f3e (patch)
tree2a9a76c1fcf9135ccc62aca895675656fe384d24 /libavfilter/dnn
parentab4f299e237708e81af473c88ec5acf0dd13d8eb (diff)
downloadffmpeg-3ac7d994280e913f41a246014d3cfb76070a6f3e.tar.gz
lavfi/dnn/dnn_io_proc.c: fix CID 1484955
CID 1484955: Memory - corruptions (ARRAY_VS_SINGLETON)
Diffstat (limited to 'libavfilter/dnn')
-rw-r--r--libavfilter/dnn/dnn_io_proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/dnn/dnn_io_proc.c b/libavfilter/dnn/dnn_io_proc.c
index 021d004e1d..f55424d97c 100644
--- a/libavfilter/dnn/dnn_io_proc.c
+++ b/libavfilter/dnn/dnn_io_proc.c
@@ -128,7 +128,7 @@ DNNReturnType ff_proc_from_frame_to_dnn(AVFrame *frame, DNNData *input, void *lo
}
sws_scale(sws_ctx, (const uint8_t **)frame->data,
frame->linesize, 0, frame->height,
- (uint8_t * const*)(&input->data),
+ (uint8_t * const [4]){input->data, 0, 0, 0},
(const int [4]){frame->width * 3 * sizeof(float), 0, 0, 0});
sws_freeContext(sws_ctx);
break;