PR #23079 opened by vigneshvg
URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23079
Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23079.patch

In the call to mkv_write_blockadditional, use the correct
buffer for smpte2094_app5.

Commit 38df985fba3a5d5072d60afc67f164f1e2bd4211 updated the
buffer usage to prevent incorrect buffer reuse, but left this line
unchanged inadvertently.

Signed-off-by: Vignesh Venkat <[email protected]>


>From 2c1af168728c91ceebbb9e87e61498546d4f9f82 Mon Sep 17 00:00:00 2001
From: Vignesh Venkat <[email protected]>
Date: Mon, 11 May 2026 14:43:12 -0700
Subject: [PATCH] avformat/matroskaenc: Use correct buffer for smpte2094_app5

In the call to mkv_write_blockadditional, use the correct
buffer for smpte2094_app5.

Commit 38df985fba3a5d5072d60afc67f164f1e2bd4211 updated the
buffer usage to prevent incorrect buffer reuse, but left this line
unchanged inadvertently.

Signed-off-by: Vignesh Venkat <[email protected]>
---
 libavformat/matroskaenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index b90485a528..67f39023ce 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2960,7 +2960,7 @@ static int mkv_write_block(void *logctx, 
MatroskaMuxContext *mkv,
             if (ret < 0)
                 return ret;
 
-            mkv_write_blockadditional(&writer, t35_buf, payload_size + 5,
+            mkv_write_blockadditional(&writer, smpte_2094_app5_buf, 
payload_size + 5,
                                       MATROSKA_BLOCK_ADD_ID_ITU_T_T35);
             track->max_blockaddid = FFMAX(track->max_blockaddid,
                                           MATROSKA_BLOCK_ADD_ID_ITU_T_T35);
-- 
2.52.0

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

Reply via email to