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

Git pushed a commit to branch release/9.0
in repository ffmpeg.

commit 7646bb4c42e6837a9396c3d9ab8d8cf476e2053b
Author:     Joshua Rogers <[email protected]>
AuthorDate: Tue Aug 4 12:11:55 2026 +0000
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Wed Aug 12 04:52:00 2026 +0200

    avformat/rtpenc_av1: do not narrow the OBU size to (long)
    
    (long)obu_size sign-flips values in 0x80000000..0xfffffffd on ILP32/LLP64
    targets (32-bit long, e.g. 64-bit Windows), bypassing the size check.
    Compare as uint32_t; frame_size is non-negative at this point.
    
    No PoC as the used setup was 64bit specific
    
    (cherry picked from commit b4c199c5906ff53368926c2a5839881f41957e7f)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/rtpenc_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc_av1.c b/libavformat/rtpenc_av1.c
index 934cfb63a3..f7c6aad47a 100644
--- a/libavformat/rtpenc_av1.c
+++ b/libavformat/rtpenc_av1.c
@@ -177,7 +177,7 @@ void ff_rtp_send_av1(AVFormatContext *ctx, const uint8_t 
*frame_buf, int frame_s
             return;
         }
 
-        if ((long) obu_size > frame_size) {
+        if (obu_size > (unsigned) frame_size) {
             av_log(ctx, AV_LOG_ERROR, "AV1 OBU size %d larger than remaining 
frame size %d\n", obu_size, frame_size);
             return;
         }

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

Reply via email to