mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
fix vlc can't play mp4 of jpeg #2388
This commit is contained in:
parent
fcb0124f29
commit
30182701f5
@ -121,6 +121,18 @@ bool MP4MuxerInterface::inputFrame(const Frame::Ptr &frame) {
|
|||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case CodecJPEG:{
|
||||||
|
int64_t dts_out, pts_out;
|
||||||
|
track_info.stamp.revise(frame->dts(), frame->pts(), dts_out, pts_out);
|
||||||
|
mp4_writer_write(_mov_writter.get(),
|
||||||
|
track_info.track_id,
|
||||||
|
frame->data(),
|
||||||
|
frame->size(),
|
||||||
|
pts_out,
|
||||||
|
dts_out,
|
||||||
|
frame->keyFrame() ? MOV_AV_FLAG_KEYFREAME : 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
default: {
|
default: {
|
||||||
int64_t dts_out, pts_out;
|
int64_t dts_out, pts_out;
|
||||||
|
Loading…
Reference in New Issue
Block a user