refine code, remove the base dts, donot drop start BP frames
This commit is contained in:
parent
b4235582dc
commit
dbdfb29de1
10
trunk/src/core/srs_core_hls.cpp
Normal file → Executable file
10
trunk/src/core/srs_core_hls.cpp
Normal file → Executable file
|
|
@ -646,6 +646,11 @@ int SrsTSMuxer::write_audio(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
|
||||||
audio_buffer->append(buf->bytes, buf->size);
|
audio_buffer->append(buf->bytes, buf->size);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((ret = SrsMpegtsWriter::write_frame(fd, audio_frame, audio_buffer)) != ERROR_SUCCESS) {
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
srs_freep(audio_frame);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -723,11 +728,6 @@ int SrsTSMuxer::write_video(u_int32_t time, SrsCodec* codec, SrsCodecSample* sam
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((ret = SrsMpegtsWriter::write_frame(fd, audio_frame, audio_buffer)) != ERROR_SUCCESS) {
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
srs_freep(audio_frame);
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user