rtpenc_mpegts: Free the right ->pb in the error path in the init function
This fixes a typo from8e32b1f096. Signed-off-by: Martin Storsjö <martin@martin.st> (cherry picked from commitc83dd2d2a4) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
This commit is contained in:
committed by
Andreas Cadhalpun
parent
04fd0250e1
commit
c3b1261afa
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user