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 a5c10346fc avcodec/lcevcdec: do nothing with unsupported pixel formats
a5c10346fc is described below

commit a5c10346fca160504bc53f70ad59069e765f0674
Author:     James Almer <[email protected]>
AuthorDate: Sat Mar 28 18:33:12 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Sat Mar 28 18:33:12 2026 -0300

    avcodec/lcevcdec: do nothing with unsupported pixel formats
    
    Instead of failing and stopping the decoding process.
    
    Signed-off-by: James Almer <[email protected]>
---
 libavcodec/lcevcdec.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavcodec/lcevcdec.c b/libavcodec/lcevcdec.c
index 657704c596..d9e8b0b76d 100644
--- a/libavcodec/lcevcdec.c
+++ b/libavcodec/lcevcdec.c
@@ -131,13 +131,14 @@ static int alloc_enhanced_frame(void *logctx, 
FFLCEVCFrame *frame_ctx,
 static int lcevc_send_frame(void *logctx, FFLCEVCFrame *frame_ctx, const 
AVFrame *in)
 {
     FFLCEVCContext *lcevc = frame_ctx->lcevc;
+    LCEVC_ColorFormat fmt = map_format(in->format);
     const AVFrameSideData *sd = av_frame_get_side_data(in, 
AV_FRAME_DATA_LCEVC);
     AVFrame *opaque;
     LCEVC_PictureHandle picture;
     LCEVC_ReturnCode res;
     int ret = 0;
 
-    if (!sd)
+    if (!sd || fmt == LCEVC_ColorFormat_Unknown)
         return 1;
 
     res = LCEVC_SendDecoderEnhancementData(lcevc->decoder, in->pts, sd->data, 
sd->size);

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

Reply via email to