avformat/rtpenc_mpegts: removed unused check of avformat_free_context

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Reviewed-by: Jun Zhao <barryjzhao@tencent.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
pull/333/head
Steven Liu 5 years ago
parent e880f4fb38
commit 0f79a71353
  1. 3
      libavformat/rtpenc_mpegts.c

@ -106,8 +106,7 @@ fail:
av_dict_free(&mpegts_ctx->metadata);
avformat_free_context(mpegts_ctx);
}
if (rtp_ctx)
avformat_free_context(rtp_ctx);
avformat_free_context(rtp_ctx);
rtp_mpegts_write_close(s);
return ret;
}

Loading…
Cancel
Save