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

Git pushed a commit to branch master
in repository ffmpeg.

commit 25ce544d4b27e5a4fdfc481f3f41ee1d631f0b3e
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Apr 17 21:26:25 2026 +0200
Commit:     Andreas Rheinhardt <[email protected]>
CommitDate: Fri Apr 17 23:52:53 2026 +0200

    avformat/matroskaenc: Increase size of EBML_WRITER array
    
    7faa6ee2aa01e3bd747ce6c55e6d44c2ba7b0bb8 added support
    for writing AV_PKT_DATA_DYNAMIC_HDR_SMPTE_2094_APP5,
    yet forgot to update the size of the EBML element buffer.
    
    Reviewed-by: James Almer <[email protected]>
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavformat/matroskaenc.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index a3b45257db..4f4337ff8b 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2852,7 +2852,11 @@ static int mkv_write_block(void *logctx, 
MatroskaMuxContext *mkv,
     size_t side_data_size;
     uint64_t additional_id;
     unsigned track_number = track->track_num;
-    EBML_WRITER(12);
+    // BlockGroup, Block, BlockDuration, DiscardPadding, BlockReference
+    // and BlockAdditions with three elements per BlockMore
+    // Don't forget to increment the number of BlockMore when adding
+    // support for writing a new blockadditional.
+    EBML_WRITER(5 + (1 + 3 * 3));
     int ret;
 
     mkv->cur_block.track  = track;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to