diff options
author | U-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!> | 2023-09-19 22:41:47 +0300 |
---|---|---|
committer | U-zzzz-VAIO\developer <C:\Users\developer\AppData\Roaming\The Bat!> | 2023-09-19 22:41:47 +0300 |
commit | bb0d304b4793f71e17f2624776f2d7d44a4d0fbb (patch) | |
tree | ad76386b1b23091c6a7f8797a1d9347b8ad242bc /src | |
parent | bc75faea27b8e72b549b9d84e9a48acf41a049ae (diff) | |
download | analogcolor-bb0d304b4793f71e17f2624776f2d7d44a4d0fbb.tar.gz |
bzero -> memset replace
Diffstat (limited to 'src')
-rw-r--r-- | src/libanalog/ntsc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libanalog/ntsc.c b/src/libanalog/ntsc.c index 18fb421..04ed7d6 100644 --- a/src/libanalog/ntsc.c +++ b/src/libanalog/ntsc.c @@ -259,7 +259,7 @@ static void ntsc_apply_harmonic_filter(float* input, float* chroma, ntsc_ctx* ct size_t start = i * ctx->filter_width / 2; if (start + to_copy > ctx->width) { to_copy = ctx->width - start; - bzero(buf + to_copy, sizeof(float) * (ctx->filter_width - to_copy)); + memset(buf + to_copy, '\0', sizeof(float) * (ctx->filter_width - to_copy)); } memcpy(buf, chroma + start, sizeof(float) * to_copy); struct gha_info t[4]; @@ -272,7 +272,7 @@ static void ntsc_apply_harmonic_filter(float* input, float* chroma, ntsc_ctx* ct } } if (j == 4) { - bzero(&info[i], sizeof(struct gha_info)); + memset(&info[i], '\0', sizeof(struct gha_info)); } else { memcpy(&info[i], &t[j], sizeof(struct gha_info)); } |