This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 5c2f9899df avformat/matroskaenc: fix error code on LCEVC payload
allocation failure
5c2f9899df is described below
commit 5c2f9899dfe3e82becb8e04f419743a861a3749c
Author: Zhao Zhili <[email protected]>
AuthorDate: Wed Jun 17 15:11:25 2026 +0800
Commit: James Almer <[email protected]>
CommitDate: Wed Jun 17 11:11:18 2026 +0000
avformat/matroskaenc: fix error code on LCEVC payload allocation failure
The branch returned the ret variable when av_malloc() failed, but ret
is uninitialized at that point unless an earlier branch happened to
set it.
---
libavformat/matroskaenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 7aa78754f3..97d66558f8 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2995,7 +2995,7 @@ static int mkv_write_block(void *logctx,
MatroskaMuxContext *mkv,
lcevc = av_malloc(payload_size);
if (!lcevc)
- return ret;
+ return AVERROR(ENOMEM);
AV_WB8 (lcevc + 0, ITU_T_T35_COUNTRY_CODE_UK);
AV_WB8 (lcevc + 1, 0); // t35_uk_country_code_second_octet
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]