Encoderd: encoders just encode, no writing (#28482)

Encoders dont write, they encode
old-commit-hash: 1fd7542eae
This commit is contained in:
Harald Schäfer
2023-06-10 23:44:01 -07:00
committed by GitHub
parent 1befc68287
commit c4bc3964a6
7 changed files with 8 additions and 70 deletions

View File

@@ -60,7 +60,6 @@ void FfmpegEncoder::encoder_open(const char* path) {
int err = avcodec_open2(this->codec_ctx, codec, NULL);
assert(err >= 0);
writer_open(path);
is_open = true;
segment_num++;
counter = 0;
@@ -69,7 +68,6 @@ 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;
}