Browse Source

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>
tags/n4.3
Steven Liu 5 years ago
parent
commit
0f79a71353
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/rtpenc_mpegts.c

+ 1
- 2
libavformat/rtpenc_mpegts.c View File

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


Loading…
Cancel
Save