Browse Source

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>
tags/n2.7
Martin Storsjö 11 years ago
parent
commit
c83dd2d2a4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/rtpenc_mpegts.c

+ 1
- 1
libavformat/rtpenc_mpegts.c View 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)


Loading…
Cancel
Save