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

Git pushed a commit to branch master
in repository ffmpeg.

commit 128ad49c32ea60f23b6eb8f3984a23a1f38da3a7
Author:     Lynne <[email protected]>
AuthorDate: Tue Feb 10 04:30:51 2026 +0100
Commit:     Lynne <[email protected]>
CommitDate: Thu Feb 19 19:42:31 2026 +0100

    ffv1dec: correctly track configured_width/height
    
    The 2 parameters were not synchronized between decoding threads.
---
 libavcodec/ffv1dec.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/libavcodec/ffv1dec.c b/libavcodec/ffv1dec.c
index 630a60595d..28e6ec3c4d 100644
--- a/libavcodec/ffv1dec.c
+++ b/libavcodec/ffv1dec.c
@@ -508,15 +508,15 @@ static int read_header(FFV1Context *f, RangeCoder *c)
         return ret;
 
     if (f->configured_pix_fmt != f->pix_fmt ||
-        f->configured_width != f->avctx->width ||
-        f->configured_height != f->avctx->height ||
+        f->configured_width != f->width ||
+        f->configured_height != f->height ||
         f->configured_ac != f->ac) {
         f->avctx->pix_fmt = get_pixel_format(f);
         if (f->avctx->pix_fmt < 0)
             return AVERROR(EINVAL);
         f->configured_pix_fmt = f->pix_fmt;
-        f->configured_width = f->avctx->width;
-        f->configured_height = f->avctx->height;
+        f->configured_width = f->width;
+        f->configured_height = f->height;
         f->configured_ac = f->ac;
     }
 
@@ -924,6 +924,8 @@ static int update_thread_context(AVCodecContext *dst, const 
AVCodecContext *src)
     fdst->pix_fmt             = fsrc->pix_fmt;
     fdst->configured_pix_fmt  = fsrc->configured_pix_fmt;
     fdst->configured_ac       = fsrc->configured_ac;
+    fdst->configured_width    = fsrc->configured_width;
+    fdst->configured_height   = fsrc->configured_height;
 
     fdst->ec                  = fsrc->ec;
     fdst->intra               = fsrc->intra;

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

Reply via email to