diff --git a/libavcodec/htmlsubtitles.c b/libavcodec/htmlsubtitles.c
index 69d855df21..1950ddf54c 100644
--- a/libavcodec/htmlsubtitles.c
+++ b/libavcodec/htmlsubtitles.c
@@ -65,9 +65,9 @@ static void handle_open_brace(AVBPrint *dst, const char **inp, int *an, int *clo
}
struct font_tag {
- char face[128];
int size;
uint32_t color;
+ char face[128];
};
/*
@@ -105,7 +105,7 @@ int ff_htmlmarkup_to_ass(void *log_ctx, AVBPrint *dst, const char *in)
* remaining after the opening one was dropped. Yes, this happens and we
* still don't want to print a "" at the end of the dialog event.
*/
- struct font_tag stack[16] = {0};
+ struct font_tag stack[16] = {{0}};
for (; !end && *in; in++) {
switch (*in)