mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-27 04:20:13 +08:00
This commit is contained in:
parent
87277ac91a
commit
6b2fcf7943
@ -247,7 +247,8 @@ bool MP4MuxerMemory::inputFrame(const Frame::Ptr &frame) {
|
||||
_key_frame = false;
|
||||
}
|
||||
|
||||
if (frame->keyFrame()) {
|
||||
// only audio all frame is key frame
|
||||
if (frame->keyFrame() || !haveVideo()) {
|
||||
_key_frame = true;
|
||||
}
|
||||
if (frame->getTrackType() == TrackVideo || !haveVideo()) {
|
||||
|
Loading…
Reference in New Issue
Block a user