Skip to content

Commit

Permalink
remove unnecessary memset
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Feb 13, 2024
1 parent 12c7ece commit 0950c6c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/modules/avformat/filter_swresample.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* filter_swresample.c -- convert from one format/ configuration to another
* Copyright (C) 2018-2022 Meltytech, LLC
* Copyright (C) 2018-2024 Meltytech, LLC
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -173,7 +173,6 @@ mlt_filter filter_swresample_init(mlt_profile profile, char *arg)
mlt_swr_private_data *pdata = (mlt_swr_private_data *) calloc(1, sizeof(mlt_swr_private_data));

if (filter && pdata) {
memset(pdata, 0, sizeof(*pdata));
filter->close = filter_close;
filter->process = filter_process;
filter->child = pdata;
Expand Down

0 comments on commit 0950c6c

Please sign in to comment.