Compare commits

..

1 Commits

Author SHA1 Message Date
alex
449d20b394
Merge 7141759d78 into 87277ac91a 2024-09-28 10:11:56 +08:00

View File

@ -247,8 +247,7 @@ bool MP4MuxerMemory::inputFrame(const Frame::Ptr &frame) {
_key_frame = false;
}
// only audio all frame is key frame
if (frame->keyFrame() || !haveVideo()) {
if (frame->keyFrame()) {
_key_frame = true;
}
if (frame->getTrackType() == TrackVideo || !haveVideo()) {