Browse Source

avformat/hdsenc: 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 6 years ago
parent
commit
e880f4fb38
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      libavformat/hdsenc.c

+ 1
- 2
libavformat/hdsenc.c View File

@@ -146,8 +146,7 @@ static void hds_free(AVFormatContext *s)
av_write_trailer(os->ctx);
if (os->ctx)
avio_context_free(&os->ctx->pb);
if (os->ctx)
avformat_free_context(os->ctx);
avformat_free_context(os->ctx);
av_freep(&os->metadata);
for (j = 0; j < os->nb_extra_packets; j++)
av_freep(&os->extra_packets[j]);


Loading…
Cancel
Save