encoder: remove public function encoder_init (#28971)

This commit is contained in:
Dean Lee
2023-07-16 14:57:44 +08:00
committed by GitHub
parent c933fbb074
commit 06aef9edd3
4 changed files with 6 additions and 8 deletions

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;