summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_mpegts.c
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2015-03-09 23:09:10 +0200
committerMartin Storsjö <martin@martin.st>2015-03-10 09:58:37 +0200
commitc83dd2d2a458075a58895c384372f57c1ec26276 (patch)
tree71f2500985a741c4866275646698d75dc4f568a4 /libavformat/rtpenc_mpegts.c
parent96a06dbaf278e8152487e08772946f63bd2a3843 (diff)
rtpenc_mpegts: Free the right ->pb in the error path in the init function
This fixes a typo from 8e32b1f096. Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/rtpenc_mpegts.c')
-rw-r--r--libavformat/rtpenc_mpegts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c
index 8ad446b9dd..8ced6a9d49 100644
--- a/libavformat/rtpenc_mpegts.c
+++ b/libavformat/rtpenc_mpegts.c
@@ -98,7 +98,7 @@ static int rtp_mpegts_write_header(AVFormatContext *s)
fail:
if (mpegts_ctx) {
- ffio_free_dyn_buf(&chain->mpegts_ctx->pb);
+ ffio_free_dyn_buf(&mpegts_ctx->pb);
avformat_free_context(mpegts_ctx);
}
if (rtp_ctx)