mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-24 19:50:38 +08:00
Compare commits
2 Commits
449d20b394
...
ae90ee6802
Author | SHA1 | Date | |
---|---|---|---|
|
ae90ee6802 | ||
|
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