[FFmpeg-devel] [PATCH] movtextdec.c: Correct the highlight tags

Philip Langdale philipl at overt.org
Mon Jul 20 17:17:03 CEST 2015


On Fri, 17 Jul 2015 16:03:09 +0530
Niklesh Lalwani <niklesh.lalwani at iitb.ac.in> wrote:

> From: Niklesh <niklesh.lalwani at iitb.ac.in>
> 
> Signed-off-by: Niklesh <niklesh.lalwani at iitb.ac.in>
> ---
>  libavcodec/movtextdec.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/libavcodec/movtextdec.c b/libavcodec/movtextdec.c
> index d564cf1..ca02107 100644
> --- a/libavcodec/movtextdec.c
> +++ b/libavcodec/movtextdec.c
> @@ -181,14 +181,14 @@ static int text_to_ass(AVBPrint *buf, const
> char *text, const char *text_end, av_bprintf(buf,
> "{\\2c&H%02x%02x%02x&}", m->c.hlit_color[2], m->c.hlit_color[1],
> m->c.hlit_color[0]); } else {
> -                    av_bprintf(buf, "{\\1c&H000000&}{\\2c&HFFFFFF}");
> +                    av_bprintf(buf,
> "{\\1c&H000000&}{\\2c&HFFFFFF&}"); }
>              }
>              if (text_pos == m->h.hlit_end) {
>                  if (m->box_flags & HCLR_BOX) {
> -                    av_bprintf(buf, "{\\2c&H000000}");
> +                    av_bprintf(buf, "{\\2c&H000000&}");
>                  } else {
> -                    av_bprintf(buf, "{\\1c&HFFFFFF&}{\\2c&H000000}");
> +                    av_bprintf(buf,
> "{\\1c&HFFFFFF&}{\\2c&H000000&}"); }
>              }
>          }

Pushed, thanks.


--phil


More information about the ffmpeg-devel mailing list