修复FrameMerger输入不可缓存帧相关bug

This commit is contained in:
xia-chu 2024-11-29 20:15:40 +08:00
parent 4f8127f6f1
commit f5d5b71731

View File

@ -261,7 +261,7 @@ static bool isNeedMerge(CodecId codec){
bool FrameMerger::inputFrame(const Frame::Ptr &frame, onOutput cb, BufferLikeString *buffer) {
if (frame && !isNeedMerge(frame->getCodecId())) {
cb(frame->dts(), frame->pts(), frame, true);
cb(frame->dts(), frame->pts(), Frame::getCacheAbleFrame(frame), true);
return true;
}
if (willFlush(frame)) {