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 e4ed85ab73 avcodec/lcevcdec: skip initial characters in log messages
e4ed85ab73 is described below
commit e4ed85ab73406c970c7cc30207f663572f5a4c30
Author: James Almer <[email protected]>
AuthorDate: Mon Sep 7 12:52:44 2026 -0300
Commit: James Almer <[email protected]>
CommitDate: Mon Sep 7 12:52:48 2026 -0300
avcodec/lcevcdec: skip initial characters in log messages
They are the liblcevc log level value, which is superfluous as it was
already
used to select the AV_LOG_* level.
Signed-off-by: James Almer <[email protected]>
---
libavcodec/lcevcdec.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c
index 07f3ddabde..d62adfba13 100644
--- a/libavcodec/lcevcdec.c
+++ b/libavcodec/lcevcdec.c
@@ -304,10 +304,12 @@ static void event_callback(LCEVC_DecoderHandle dec,
LCEVC_Event event,
switch (event) {
case LCEVC_Log: {
unsigned int level = 0;
+ if (size < 3)
+ break;
int ret = sscanf(data, "%u ", &level);
if (ret != 1 || level >= LCEVC_LogLevelCount || !level_map[level])
break;
- av_log(logctx, level_map[level], "%s\n", data);
+ av_log(logctx, level_map[level], "%s\n", data + 2);
break;
}
default:
--
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]