mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
refine code, remove the base dts, donot drop start BP frames
This commit is contained in:
parent
b4235582dc
commit
dbdfb29de1
1 changed files with 741 additions and 741 deletions
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…
Add table
Add a link
Reference in a new issue