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

Git pushed a commit to branch master
in repository ffmpeg.

commit cc2f9ff14fe574c704f976c4626923f3a9c2407a
Author:     Manuel Lauss <[email protected]>
AuthorDate: Wed Nov 19 12:21:41 2025 +0100
Commit:     Manuel Lauss <[email protected]>
CommitDate: Fri May 8 05:08:22 2026 +0000

    avcodec/sanm: fobj: do not use codec-id to determine canvas size.
    
    Codec>=37 with smaller dimensions can be embedded onto larger canvasses;
    it makes no sense to trust their dimensions explicitly.
    
    Signed-off-by: Manuel Lauss <[email protected]>
---
 libavcodec/sanm.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libavcodec/sanm.c b/libavcodec/sanm.c
index fc07ec659c..56da18d890 100644
--- a/libavcodec/sanm.c
+++ b/libavcodec/sanm.c
@@ -2057,11 +2057,6 @@ static int process_frame_obj(SANMVideoContext *ctx, 
GetByteContext *gb,
             if (w > xres || h > yres)
                 return AVERROR_INVALIDDATA;
             ctx->have_dimensions = 1;
-        } else if (fsc) {
-            /* these codecs work on full frames, trust their dimensions */
-            xres = w;
-            yres = h;
-            ctx->have_dimensions = 1;
         } else {
             /* detect common sizes */
             xres = w + left;

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

Reply via email to