Commit c0d3fea6 authored by John Stebbins's avatar John Stebbins Committed by Philip Langdale

lavc/movtextdec: make sure default font name is set

Signed-off-by: 's avatarPhilip Langdale <philipl@overt.org>
parent e5b99df0
......@@ -52,7 +52,7 @@
typedef struct {
uint16_t fontID;
char *font;
const char *font;
uint8_t fontsize;
int color;
int back_color;
......@@ -251,6 +251,8 @@ static int mov_text_tx3g(AVCodecContext *avctx, MovTextContext *m)
m->ftab_temp = NULL;
tx3g_ptr = tx3g_ptr + font_length;
}
// In case of broken header, init default font
m->d.font = ASS_DEFAULT_FONT;
for (i = 0; i < m->ftab_entries; i++) {
if (m->d.fontID == m->ftab[i]->fontID)
m->d.font = m->ftab[i]->font;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment