rtpenc_mpegts: Free the right ->pb in the error path in the init function
authorMartin Storsjö <martin@martin.st>
Mon, 9 Mar 2015 21:09:10 +0000 (23:09 +0200)
committerMartin Storsjö <martin@martin.st>
Tue, 10 Mar 2015 07:58:37 +0000 (09:58 +0200)
This fixes a typo from 8e32b1f096.

Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/rtpenc_mpegts.c

index 8ad446b..8ced6a9 100644 (file)
@@ -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)