diff options
Diffstat (limited to 'libavformat/srtpproto.c')
-rw-r--r-- | libavformat/srtpproto.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libavformat/srtpproto.c b/libavformat/srtpproto.c index 5e6e5164d7..13e2245015 100644 --- a/libavformat/srtpproto.c +++ b/libavformat/srtpproto.c @@ -59,8 +59,7 @@ static int srtp_close(URLContext *h) SRTPProtoContext *s = h->priv_data; ff_srtp_free(&s->srtp_out); ff_srtp_free(&s->srtp_in); - ffurl_close(s->rtp_hd); - s->rtp_hd = NULL; + ffurl_closep(&s->rtp_hd); return 0; } |