Compare commits

..

1 Commits

Author SHA1 Message Date
alex
3caeda27f1
Merge 90bd28249e into 87277ac91a 2024-09-28 10:14:40 +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()) {