mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
Fix the issue where the hls-fmp4 do not flush data in single audio cases (#3935 #3937)
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
Some checks failed
Android / build (push) Has been cancelled
CodeQL / Analyze (cpp) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
Docker / build (push) Has been cancelled
Linux / build (push) Has been cancelled
macOS / build (push) Has been cancelled
Windows / build (push) Has been cancelled
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