mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 12:32:06 +08:00
fix resource leak when rotating encoder (#2141)
old-commit-hash: 209e7aa4719fd88bd465936321ea3e6cf5f10658
This commit is contained in:
@@ -637,6 +637,7 @@ void encoder_close(EncoderState *s) {
|
||||
|
||||
if (s->remuxing) {
|
||||
av_write_trailer(s->ofmt_ctx);
|
||||
avcodec_free_context(&s->codec_ctx);
|
||||
avio_closep(&s->ofmt_ctx->pb);
|
||||
avformat_free_context(s->ofmt_ctx);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user