avutil/tx: zero whole array, not only one element

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow committed 2025-08-07 07:36:33 +00:00
1 parent c64cff64a2
commit 56e0a883c1
1 file changed
+1 -1
+1 -1
View File
@@ -284,7 +284,7 @@ static void reset_ctx(AVTXContext *s, int free_sub)
* ff_tx_init_subtx() call is made. */
s->nb_sub = 0;
s->opaque = NULL;
memset(s->fn, 0, sizeof(*s->fn));
memset(s->fn, 0, sizeof(s->fn));
}
void ff_tx_clear_ctx(AVTXContext *s)