diff options
author | Guo Yejun <yejun.guo@intel.com> | 2021-05-29 21:19:39 +0800 |
---|---|---|
committer | Guo Yejun <yejun.guo@intel.com> | 2021-06-05 17:15:29 +0800 |
commit | 3ac7d994280e913f41a246014d3cfb76070a6f3e (patch) | |
tree | 2a9a76c1fcf9135ccc62aca895675656fe384d24 | |
parent | ab4f299e237708e81af473c88ec5acf0dd13d8eb (diff) | |
download | ffmpeg-3ac7d994280e913f41a246014d3cfb76070a6f3e.tar.gz |
lavfi/dnn/dnn_io_proc.c: fix CID 1484955
CID 1484955: Memory - corruptions (ARRAY_VS_SINGLETON)
-rw-r--r-- | libavfilter/dnn/dnn_io_proc.c | 2 |
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; |