mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-17 15:27:49 +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;
|
_key_frame = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (frame->keyFrame()) {
|
// only audio all frame is key frame
|
||||||
|
if (frame->keyFrame() || !haveVideo()) {
|
||||||
_key_frame = true;
|
_key_frame = true;
|
||||||
}
|
}
|
||||||
if (frame->getTrackType() == TrackVideo || !haveVideo()) {
|
if (frame->getTrackType() == TrackVideo || !haveVideo()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user