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

Git pushed a commit to branch master
in repository ffmpeg.

commit b801236856a1bed30052e4ca008a3cc88976ddb0
Author:     Ramiro Polla <[email protected]>
AuthorDate: Wed Jul 15 14:53:59 2026 +0200
Commit:     Ramiro Polla <[email protected]>
CommitDate: Thu Jul 16 10:28:36 2026 +0200

    avutil/bprint: fix pointer signedness in return value for 
av_bprint_get_buffer()
    
    This is usually silenced by -Wno-pointer-sign, but a good fix nonetheless.
---
 libavutil/bprint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavutil/bprint.c b/libavutil/bprint.c
index 11e0f08774..266da11304 100644
--- a/libavutil/bprint.c
+++ b/libavutil/bprint.c
@@ -221,7 +221,7 @@ void av_bprint_get_buffer(AVBPrint *buf, unsigned size,
     if (size > av_bprint_room(buf))
         av_bprint_alloc(buf, size);
     *actual_size = av_bprint_room(buf);
-    *mem = *actual_size ? buf->str + buf->len : NULL;
+    *mem = *actual_size ? (unsigned char *) (buf->str + buf->len) : NULL;
 }
 
 void av_bprint_clear(AVBPrint *buf)

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

Reply via email to