Support ffmpeg soft encode

This commit is contained in:
dijunkun
2023-09-20 16:54:56 +08:00
parent b16b29780b
commit 3d4e1effe9
8 changed files with 146 additions and 22 deletions

View File

@@ -85,8 +85,10 @@ int VideoDecoder::Decode(
std::function<void(VideoFrame)> on_receive_decoded_frame) {
if (!first_) {
if ((*(data + 4) & 0x1f) != 0x07) {
LOG_ERROR("1");
return -1;
} else {
LOG_ERROR("2");
first_ = true;
}
}