This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

commit c23f784451abba63eaef093fb62ff4e67a2821f4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Mon Oct 12 02:17:45 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 02:25:09 2026 +0000

    avfilter/vidstabutils: do not offer packed RGB formats with vid.stab before 
1.4.0
    
    Fixes: assertion failure
    Fixes: CSKmF1Dx1jig
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24608
    Assertion failure Replicated through UnModified FFmpeg
    Crash Replicated through UnModified FFmpeg with ASAN
---
 libavfilter/vidstabutils.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavfilter/vidstabutils.c b/libavfilter/vidstabutils.c
index a0c1fc990e..ba19c76a5b 100644
--- a/libavfilter/vidstabutils.c
+++ b/libavfilter/vidstabutils.c
@@ -25,7 +25,9 @@ const enum AVPixelFormat ff_vidstab_pix_fmts[] =  {
     AV_PIX_FMT_YUV444P,  AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUV420P,
     AV_PIX_FMT_YUV411P,  AV_PIX_FMT_YUV410P, AV_PIX_FMT_YUVA420P,
     AV_PIX_FMT_YUV440P,  AV_PIX_FMT_GRAY8,
+#if defined(LIBVIDSTAB_VERSION_INT) && LIBVIDSTAB_VERSION_INT >= 
AV_VERSION_INT(1, 4, 0)
     AV_PIX_FMT_RGB24,    AV_PIX_FMT_BGR24,   AV_PIX_FMT_RGBA,
+#endif
     AV_PIX_FMT_NONE
 };
 
@@ -41,9 +43,11 @@ VSPixelFormat ff_av2vs_pixfmt(AVFilterContext *ctx, enum 
AVPixelFormat pf)
     case AV_PIX_FMT_YUV440P:  return PF_YUV440P;
     case AV_PIX_FMT_YUVA420P: return PF_YUVA420P;
     case AV_PIX_FMT_GRAY8:    return PF_GRAY8;
+#if defined(LIBVIDSTAB_VERSION_INT) && LIBVIDSTAB_VERSION_INT >= 
AV_VERSION_INT(1, 4, 0)
     case AV_PIX_FMT_RGB24:    return PF_RGB24;
     case AV_PIX_FMT_BGR24:    return PF_BGR24;
     case AV_PIX_FMT_RGBA:     return PF_RGBA;
+#endif
     default:
         av_log(ctx, AV_LOG_ERROR, "cannot deal with pixel format %i\n", pf);
         return PF_NONE;

-- 
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]

Reply via email to