EncoderInfo: encoder setting factorys (#35940)

This commit is contained in:
ZwX1616
2025-08-06 16:53:16 -07:00
committed by GitHub
parent bb8a2ff65b
commit a84089c6e5
4 changed files with 44 additions and 24 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ FfmpegEncoder::~FfmpegEncoder() {
}
void FfmpegEncoder::encoder_open() {
auto codec_id = encoder_info.encode_type == cereal::EncodeIndex::Type::QCAMERA_H264
auto codec_id = encoder_info.settings.encode_type == cereal::EncodeIndex::Type::QCAMERA_H264
? AV_CODEC_ID_H264
: AV_CODEC_ID_FFVHUFF;
const AVCodec *codec = avcodec_find_encoder(codec_id);