encoder: remove public function encoder_init (#28971)

old-commit-hash: 06aef9edd35b09382fac2616b190816bd8fe9a98
This commit is contained in:
Dean Lee
2023-07-16 14:57:44 +08:00
committed by GitHub
parent d6b8eed74d
commit ad461bedb2
4 changed files with 6 additions and 8 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ extern "C" {
const int env_debug_encoder = (getenv("DEBUG_ENCODER") != NULL) ? atoi(getenv("DEBUG_ENCODER")) : 0;
void FfmpegEncoder::encoder_init() {
FfmpegEncoder::FfmpegEncoder(const EncoderInfo &encoder_info, int in_width, int in_height)
: VideoEncoder(encoder_info, in_width, in_height) {
frame = av_frame_alloc();
assert(frame);
frame->format = AV_PIX_FMT_YUV420P;