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

This reverts commit 62f812dca8fda5da7e14252cfcdd8c1ebef38c2c.

old-commit-hash: 9ad6cbbe6d
This commit is contained in:
Willem Melching 2020-04-29 16:14:51 -07:00
parent e95719f5e9
commit 39cce620d4
1 changed files with 0 additions and 1 deletions

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);