diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-19 19:21:05 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2024-02-19 23:29:57 +0100 |
commit | e7c33c92d1eb04669553a89f8e69c64d4d77d9f4 (patch) | |
tree | f123cff98f46efc61ae552d924d6c5fbaa350db5 | |
parent | 840f192540ccf261561cf3ccedf8a8b91421f66b (diff) | |
download | ffmpeg-e7c33c92d1eb04669553a89f8e69c64d4d77d9f4.tar.gz |
avformat/iamf_writer: Don't memset twice
This has been allocated via av_calloc() a few lines above.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r-- | libavformat/iamf_writer.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/iamf_writer.c b/libavformat/iamf_writer.c index e0c47b5e9d..9a665dc002 100644 --- a/libavformat/iamf_writer.c +++ b/libavformat/iamf_writer.c @@ -251,7 +251,6 @@ int ff_iamf_add_audio_element(IAMFContext *iamf, const AVStreamGroup *stg, void int nb_channels = iamf_audio_element->layers[i]->ch_layout.nb_channels; IAMFLayer *layer = &audio_element->layers[i]; - memset(layer, 0, sizeof(*layer)); if (i) nb_channels -= iamf_audio_element->layers[i - 1]->ch_layout.nb_channels; |