This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit f3aa5e142086dc0864a8beff43b4fc96c6084de3
Author:     Sahitya Chandra <[email protected]>
AuthorDate: Sun Sep 20 23:23:59 2026 +0530
Commit:     Kacper Michajłow <[email protected]>
CommitDate: Thu Sep 24 12:35:59 2026 +0000

    avcodec/movtextenc: account for the fallback font name in ftab size
    
    Include the fallback Serif font name in the size calculation so that an
    ASS header without styles produces an ftab box declaring 18 bytes, not 13.
    
    Related to: https://code.ffmpeg.org/FFmpeg/FFmpeg/issues/24184
    Signed-off-by: Sahitya Chandra <[email protected]>
---
 libavcodec/movtextenc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/movtextenc.c b/libavcodec/movtextenc.c
index a5f0325595..589540e115 100644
--- a/libavcodec/movtextenc.c
+++ b/libavcodec/movtextenc.c
@@ -283,8 +283,10 @@ static int encode_sample_description(AVCodecContext *avctx)
                 font_names_total_len += strlen(ass->styles[i].font_name);
             }
         }
-    } else
+    } else {
         av_dynarray_add(&s->fonts, &s->font_count, (char*)"Serif");
+        font_names_total_len = strlen("Serif");
+    }
 
     //     FontTableBox {
     p = buf;

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to