[FFmpeg-cvslog] rtpenc_mpegts: Free the right ->pb in the error path in the init function

Martin Storsjö git at videolan.org
Thu May 14 20:58:35 CEST 2015


ffmpeg | branch: release/2.6 | Martin Storsjö <martin at martin.st> | Mon Mar  9 23:09:10 2015 +0200| [c3b1261afa319120f998b879b474c4f912eb8750] | committer: Andreas Cadhalpun

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 at martin.st>
(cherry picked from commit c83dd2d2a458075a58895c384372f57c1ec26276)
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun at googlemail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c3b1261afa319120f998b879b474c4f912eb8750
---

 libavformat/rtpenc_mpegts.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc_mpegts.c b/libavformat/rtpenc_mpegts.c
index 5b94e73..b49ee81 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)



More information about the ffmpeg-cvslog mailing list