encoder: remove function publisher_init, init PubMaster in constructor (#28980)

old-commit-hash: 65fe3c8c344233832e6aa79a2007ff5624a2c914
This commit is contained in:
Dean Lee
2023-07-18 10:25:41 +08:00
committed by GitHub
parent 4185aeb93b
commit bd93cd7db3
4 changed files with 4 additions and 15 deletions
-2
View File
@@ -40,8 +40,6 @@ FfmpegEncoder::FfmpegEncoder(const EncoderInfo &encoder_info, int in_width, int
if (in_width != encoder_info.frame_width || in_height != encoder_info.frame_height) {
downscale_buf.resize(encoder_info.frame_width * encoder_info.frame_height * 3 / 2);
}
publisher_init();
}
FfmpegEncoder::~FfmpegEncoder() {