mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-01 11:32:21 +08:00
FfmpegEncoder: free codec_ctx in encoder_close (#24967)
free context old-commit-hash: 0aa9ae21d4068d1e8099ff4256d86a204ec31c1c
This commit is contained in:
@@ -68,7 +68,9 @@ void FfmpegEncoder::encoder_open(const char* path) {
|
||||
|
||||
void FfmpegEncoder::encoder_close() {
|
||||
if (!is_open) return;
|
||||
|
||||
writer_close();
|
||||
avcodec_free_context(&codec_ctx);
|
||||
is_open = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user