]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/dashenc.c
avformat/dashenc: remove unused check of avformat_free_context
[ffmpeg] / libavformat / dashenc.c
index a462876c13a191e484b91334d9d159bebe261028..8c28fb6b6e3c8b4a31d755f5b1d5cd76fc56e561 100644 (file)
@@ -588,8 +588,7 @@ static void dash_free(AVFormatContext *s)
                 avio_close(os->ctx->pb);
         }
         ff_format_io_close(s, &os->out);
-        if (os->ctx)
-            avformat_free_context(os->ctx);
+        avformat_free_context(os->ctx);
         for (j = 0; j < os->nb_segments; j++)
             av_free(os->segments[j]);
         av_free(os->segments);