mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
rtsp: Free the rtpdec context properly
The condition for calling the rtpdec cleanup was broken in df8cf076c86. This fixes a memory leak. Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
parent
3f02c533f3
commit
125c6c0752
@ -568,7 +568,7 @@ void ff_rtsp_undo_setup(AVFormatContext *s)
|
|||||||
avformat_free_context(rtpctx);
|
avformat_free_context(rtpctx);
|
||||||
} else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
|
} else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
|
||||||
ff_rdt_parse_close(rtsp_st->transport_priv);
|
ff_rdt_parse_close(rtsp_st->transport_priv);
|
||||||
else if (rt->transport == RTSP_TRANSPORT_RAW && CONFIG_RTPDEC)
|
else if (rt->transport == RTSP_TRANSPORT_RTP && CONFIG_RTPDEC)
|
||||||
ff_rtp_parse_close(rtsp_st->transport_priv);
|
ff_rtp_parse_close(rtsp_st->transport_priv);
|
||||||
}
|
}
|
||||||
rtsp_st->transport_priv = NULL;
|
rtsp_st->transport_priv = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user