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

Git pushed a commit to branch master
in repository ffmpeg.

commit 44095007d00f908dbdeaadaccc50d7bdeff36a37
Author:     Andreas Rheinhardt <[email protected]>
AuthorDate: Fri Aug 14 22:48:13 2026 +0200
Commit:     Jack Lau <[email protected]>
CommitDate: Sat Aug 15 08:14:15 2026 +0000

    avformat/whip: Avoid allocation
    
    Signed-off-by: Andreas Rheinhardt <[email protected]>
---
 libavformat/whip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/whip.c b/libavformat/whip.c
index a845f0c37c..cea9941878 100644
--- a/libavformat/whip.c
+++ b/libavformat/whip.c
@@ -819,7 +819,7 @@ static int exchange_sdp(AVFormatContext *s)
         goto end;
     }
     ff_data_to_hex(hex_data, whip->sdp_offer, sdp_offer_len, 0);
-    av_dict_set(&opts, "post_data", hex_data, 0);
+    av_dict_set(&opts, "post_data", hex_data, AV_DICT_DONT_STRDUP_VAL);
 
     ret = ffurl_open_whitelist(&whip_uc, s->url, AVIO_FLAG_READ_WRITE, 
&s->interrupt_callback,
         &opts, s->protocol_whitelist, s->protocol_blacklist, NULL);
@@ -877,7 +877,6 @@ end:
     ffurl_closep(&whip_uc);
     av_bprint_finalize(&bp, NULL);
     av_dict_free(&opts);
-    av_freep(&hex_data);
     return ret;
 }
 

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

Reply via email to