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; _key_frame = false;
} }
// only audio all frame is key frame if (frame->keyFrame()) {
if (frame->keyFrame() || !haveVideo()) {
_key_frame = true; _key_frame = true;
} }
if (frame->getTrackType() == TrackVideo || !haveVideo()) { if (frame->getTrackType() == TrackVideo || !haveVideo()) {