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

Git pushed a commit to branch master
in repository ffmpeg.

commit b4c199c5906ff53368926c2a5839881f41957e7f
Author:     Joshua Rogers <[email protected]>
AuthorDate: Tue Aug 4 12:11:55 2026 +0000
Commit:     michaelni <[email protected]>
CommitDate: Tue Aug 11 23:34:41 2026 +0000

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