You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-23 21:54:53 +02:00
avformat/whip: cleanup the redundant variable
Signed-off-by: Jack Lau <jacklau1222@qq.com>
This commit is contained in:
@@ -1260,7 +1260,7 @@ static int ice_dtls_handshake(AVFormatContext *s)
|
|||||||
WHIPContext *whip = s->priv_data;
|
WHIPContext *whip = s->priv_data;
|
||||||
int is_dtls_active = whip->flags & WHIP_DTLS_ACTIVE;
|
int is_dtls_active = whip->flags & WHIP_DTLS_ACTIVE;
|
||||||
AVDictionary *opts = NULL;
|
AVDictionary *opts = NULL;
|
||||||
char buf[256], *cert_buf = NULL, *key_buf = NULL;
|
char buf[256];
|
||||||
|
|
||||||
if (whip->state < WHIP_STATE_UDP_CONNECTED || !whip->udp) {
|
if (whip->state < WHIP_STATE_UDP_CONNECTED || !whip->udp) {
|
||||||
av_log(whip, AV_LOG_ERROR, "UDP not connected, state=%d, udp=%p\n", whip->state, whip->udp);
|
av_log(whip, AV_LOG_ERROR, "UDP not connected, state=%d, udp=%p\n", whip->state, whip->udp);
|
||||||
@@ -1380,10 +1380,6 @@ next_packet:
|
|||||||
}
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
if (cert_buf)
|
|
||||||
av_free(cert_buf);
|
|
||||||
if (key_buf)
|
|
||||||
av_free(key_buf);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user