Commit 5f39f63a authored by John Stebbins's avatar John Stebbins Committed by Philip Langdale

lavc/movtextdec: fix bold, italic, underline flags

They should be 0 or 1 so that 0 or -1 is written to the ass header
Signed-off-by: 's avatarPhilip Langdale <philipl@overt.org>
parent 2949f17e
...@@ -193,9 +193,9 @@ static int mov_text_tx3g(AVCodecContext *avctx, MovTextContext *m) ...@@ -193,9 +193,9 @@ static int mov_text_tx3g(AVCodecContext *avctx, MovTextContext *m)
tx3g_ptr += 2; tx3g_ptr += 2;
// face-style-flags // face-style-flags
s_default.style_flag = *tx3g_ptr++; s_default.style_flag = *tx3g_ptr++;
m->d.bold = s_default.style_flag & STYLE_FLAG_BOLD; m->d.bold = !!(s_default.style_flag & STYLE_FLAG_BOLD);
m->d.italic = s_default.style_flag & STYLE_FLAG_ITALIC; m->d.italic = !!(s_default.style_flag & STYLE_FLAG_ITALIC);
m->d.underline = s_default.style_flag & STYLE_FLAG_UNDERLINE; m->d.underline = !!(s_default.style_flag & STYLE_FLAG_UNDERLINE);
// fontsize // fontsize
m->d.fontsize = *tx3g_ptr++; m->d.fontsize = *tx3g_ptr++;
// Primary color // Primary color
......
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