[FFmpeg-cvslog] checkasm/sw_scale: use av_free() instead of free()
James Almer
git at videolan.org
Thu Feb 18 01:59:19 EET 2021
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Feb 17 20:57:33 2021 -0300| [1371647fc381774d40b8beecf69604331262172d] | committer: James Almer
checkasm/sw_scale: use av_free() instead of free()
Fixes crashes on Win64
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1371647fc381774d40b8beecf69604331262172d
---
tests/checkasm/sw_scale.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/checkasm/sw_scale.c b/tests/checkasm/sw_scale.c
index 6a95546ba6..7504f8b45f 100644
--- a/tests/checkasm/sw_scale.c
+++ b/tests/checkasm/sw_scale.c
@@ -127,8 +127,8 @@ static void check_yuv2yuvX(void)
bench_new((const int16_t*)vFilterData, filter_sizes[fsi], src, dst1, dstW - osi, dither, osi);
}
}
- free(src);
- free(vFilterData);
+ av_freep(&src);
+ av_freep(&vFilterData);
}
}
}
More information about the ffmpeg-cvslog
mailing list