Revert "fix memory leak in encoder_close (#1366)"

This reverts commit 62f812dca8fda5da7e14252cfcdd8c1ebef38c2c.

old-commit-hash: 9ad6cbbe6dd2b5367039f2774892021a4c27034f
This commit is contained in:
Willem Melching
2020-04-29 16:14:51 -07:00
parent e95719f5e9
commit 39cce620d4

View File

@@ -635,7 +635,6 @@ void encoder_close(EncoderState *s) {
if (s->remuxing) {
av_write_trailer(s->ofmt_ctx);
avio_closep(&s->ofmt_ctx->pb);
avcodec_free_context(&s->codec_ctx);
avformat_free_context(s->ofmt_ctx);
} else {
fclose(s->of);