1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avformat/whip: free udp socket after dtls free

the SSL_shutdown in tls_close need call the url_bio_bwrite
so we should keep udp still alive

Signed-off-by: Jack Lau <jacklau1222@qq.com>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
This commit is contained in:
Jack Lau
2025-07-12 17:05:13 +08:00
committed by Timo Rothenpieler
parent 95eae5dd50
commit 7bd3bdbd62

View File

@ -1865,12 +1865,12 @@ static av_cold void whip_deinit(AVFormatContext *s)
av_freep(&whip->authorization);
av_freep(&whip->cert_file);
av_freep(&whip->key_file);
ffurl_closep(&whip->udp);
ff_srtp_free(&whip->srtp_audio_send);
ff_srtp_free(&whip->srtp_video_send);
ff_srtp_free(&whip->srtp_rtcp_send);
ff_srtp_free(&whip->srtp_recv);
ffurl_close(whip->dtls_uc);
ffurl_closep(&whip->udp);
}
static int whip_check_bitstream(AVFormatContext *s, AVStream *st, const AVPacket *pkt)