mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 20:47:08 +08:00
完善rtp推流
This commit is contained in:
parent
99a55ddaaa
commit
895e7d4714
@ -204,10 +204,10 @@ void RtpProcess::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d
|
|||||||
pts /= 90;
|
pts /= 90;
|
||||||
dts /= 90;
|
dts /= 90;
|
||||||
_stamps[codecid].revise(dts,pts,dts,pts,false);
|
_stamps[codecid].revise(dts,pts,dts,pts,false);
|
||||||
_dts = dts;
|
|
||||||
|
|
||||||
switch (codecid) {
|
switch (codecid) {
|
||||||
case STREAM_VIDEO_H264: {
|
case STREAM_VIDEO_H264: {
|
||||||
|
_dts = dts;
|
||||||
if (!_codecid_video) {
|
if (!_codecid_video) {
|
||||||
//获取到视频
|
//获取到视频
|
||||||
_codecid_video = codecid;
|
_codecid_video = codecid;
|
||||||
@ -232,6 +232,7 @@ void RtpProcess::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d
|
|||||||
}
|
}
|
||||||
|
|
||||||
case STREAM_VIDEO_H265: {
|
case STREAM_VIDEO_H265: {
|
||||||
|
_dts = dts;
|
||||||
if (!_codecid_video) {
|
if (!_codecid_video) {
|
||||||
//获取到视频
|
//获取到视频
|
||||||
_codecid_video = codecid;
|
_codecid_video = codecid;
|
||||||
@ -254,6 +255,7 @@ void RtpProcess::onDecode(int stream,int codecid,int flags,int64_t pts,int64_t d
|
|||||||
}
|
}
|
||||||
|
|
||||||
case STREAM_AUDIO_AAC: {
|
case STREAM_AUDIO_AAC: {
|
||||||
|
_dts = dts;
|
||||||
if (!_codecid_audio) {
|
if (!_codecid_audio) {
|
||||||
//获取到音频
|
//获取到音频
|
||||||
_codecid_audio = codecid;
|
_codecid_audio = codecid;
|
||||||
|
Loading…
Reference in New Issue
Block a user