summaryrefslogtreecommitdiff
path: root/libavformat/rtsp.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2012-08-17 22:22:17 +0300
committerMartin Storsjö <martin@martin.st>2012-08-27 12:29:47 +0300
commit125c6c07525a7153957d70a1bb5b732f113d1480 (patch)
treed5cbf3b911fdf079ad316c1149f7a0312a073069 /libavformat/rtsp.c
parent3f02c533f3e3b3d11bb5a923f620e4f2de3667e8 (diff)
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>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r--libavformat/rtsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c
index ce18610b4b..039086286c 100644
--- a/libavformat/rtsp.c
+++ b/libavformat/rtsp.c
@@ -568,7 +568,7 @@ void ff_rtsp_undo_setup(AVFormatContext *s)
avformat_free_context(rtpctx);
} else if (rt->transport == RTSP_TRANSPORT_RDT && CONFIG_RTPDEC)
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);
}
rtsp_st->transport_priv = NULL;