CID 1484955: Memory - corruptions (ARRAY_VS_SINGLETON)
Unified · Split
| @@ -128,7 +128,7 @@ DNNReturnType ff_proc_from_frame_to_dnn(AVFrame *frame, DNNData *input, void *lo · 127 unmodified lines | ||
| 128 | 128 | } |
| 129 | 129 | sws_scale(sws_ctx, (const uint8_t **)frame->data, |
| 130 | 130 | frame->linesize, 0, frame->height, |
| 131 | − (uint8_t * const*)(&input->data), | |
| 131 | + (uint8_t * const [4]){input->data, 0, 0, 0}, | |
| 132 | 132 | (const int [4]){frame->width * 3 * sizeof(float), 0, 0, 0}); |
| 133 | 133 | sws_freeContext(sws_ctx); |
| 134 | 134 | break; |