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

This reverts commit 3b3eebb137.
pull/1441/head
Willem Melching 2020-04-29 16:14:51 -07:00
parent 8b65975925
commit 9ad6cbbe6d
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);