mirror of https://github.com/commaai/openpilot.git
Revert "fix memory leak in encoder_close (#1366)"
This reverts commit 62f812dca8fda5da7e14252cfcdd8c1ebef38c2c.
old-commit-hash: 9ad6cbbe6d
This commit is contained in:
parent
e95719f5e9
commit
39cce620d4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue