summaryrefslogtreecommitdiff
path: root/libavutil/tx.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-11 16:08:05 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-14 12:32:02 +0200
commitc1714a483fa9a3b35b8e391c7a29c4393736d294 (patch)
tree03211cf39fd69138f074f3627701c7f7657ebd12 /libavutil/tx.c
parent830b5cc35ef0a28992a4d9fe90a1ccf612be45fa (diff)
avcodec/libaribb24,ttmlenc, avutil/tx: Remove redundant init of AVBPrint
An AVBPrint is initialized via av_bprint_init() (or av_bprint_init_for_buffer()) which expects uninitialized AVBPrints; it is therefore not necessary to zero them before the actual initialization. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavutil/tx.c')
-rw-r--r--libavutil/tx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavutil/tx.c b/libavutil/tx.c
index 24b2015b44..d6740071b9 100644
--- a/libavutil/tx.c
+++ b/libavutil/tx.c
@@ -595,7 +595,7 @@ static void print_type(AVBPrint *bp, enum AVTXType type)
static void print_cd_info(const FFTXCodelet *cd, int prio, int len, int print_prio)
{
- AVBPrint bp = { 0 };
+ AVBPrint bp;
av_bprint_init(&bp, 0, AV_BPRINT_SIZE_AUTOMATIC);
av_bprintf(&bp, "%s - type: ", cd->name);
@@ -718,7 +718,7 @@ av_cold int ff_tx_init_subtx(AVTXContext *s, enum AVTXType type,
int codelet_list_idx = codelet_list_num;
int nb_cd_matches = 0;
#if !CONFIG_SMALL
- AVBPrint bp = { 0 };
+ AVBPrint bp;
#endif
/* We still accept functions marked with SLOW, even if the CPU is