Commit b5146a431a for ffmpeg

commit b5146a431a6f88ab8211a2daaf2920892d52b9bc
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Sun Nov 8 14:17:51 2026 +0100

    avfilter/vf_lcevc: pass the LCEVCdec log messages through

    The size LCEVCdec reports for a log event includes the terminating
    NUL, so the check strlen(data) != size rejected every message and no
    library log, errors included, ever reached the user.

    Fixes: dropped library log messages

    Found during triage of the Fairy review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25134

    Dropped library log messages Replicated through UnModified FFmpeg with
    the ffmpeg log output

diff --git a/libavfilter/vf_lcevc.c b/libavfilter/vf_lcevc.c
index 02d17e8023..6d4315cf30 100644
--- a/libavfilter/vf_lcevc.c
+++ b/libavfilter/vf_lcevc.c
@@ -399,7 +399,7 @@ static void log_callback(LCEVC_DecoderHandle dec, LCEVC_Event event,
     if (event != LCEVC_Log) // shouldn't happen
         return;

-    if (strlen(data) != size) // sanitize input
+    if (!size || data[size - 1]) // sanitize input
         return;

     av_log(logctx, AV_LOG_INFO, "LCEVC Log: %s\n", data);