Skip to content
Snippets Groups Projects
Commit c83dd2d2 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

rtpenc_mpegts: Free the right ->pb in the error path in the init function


This fixes a typo from 8e32b1f0.

Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 96a06dba
No related branches found
No related tags found
No related merge requests found
...@@ -98,7 +98,7 @@ static int rtp_mpegts_write_header(AVFormatContext *s) ...@@ -98,7 +98,7 @@ static int rtp_mpegts_write_header(AVFormatContext *s)
fail: fail:
if (mpegts_ctx) { if (mpegts_ctx) {
ffio_free_dyn_buf(&chain->mpegts_ctx->pb); ffio_free_dyn_buf(&mpegts_ctx->pb);
avformat_free_context(mpegts_ctx); avformat_free_context(mpegts_ctx);
} }
if (rtp_ctx) if (rtp_ctx)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment