mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 11:51:57 +00:00
BugFix: Resolve the problem of srs_error_t memory leak. v5.0.163, v6.0.57 (#3605)
--------- Co-authored-by: Haibo Chen <495810242@qq.com> Co-authored-by: chundonglinlin <chundonglinlin@163.com>
This commit is contained in:
parent
7ba59c3635
commit
fe230365ab
5 changed files with 8 additions and 5 deletions
|
@ -8,6 +8,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 6.0 Changelog
|
||||
|
||||
* v6.0, 2023-07-01, Merge [#3605](https://github.com/ossrs/srs/pull/3605): BugFix: Resolve the problem of srs_error_t memory leak. v6.0.57 (#3605)
|
||||
* v6.0, 2023-06-30, Merge [#3596](https://github.com/ossrs/srs/pull/3596): Improve the usage of "transcode" in the "full.conf" file. v6.0.56 (#3596)
|
||||
* v6.0, 2023-06-21, Merge [#3551](https://github.com/ossrs/srs/pull/3551): H264: Fix H.264 ISOM reserved bit value. v6.0.55 (#3551)
|
||||
* v6.0, 2023-06-20, Merge [#3594](https://github.com/ossrs/srs/pull/3594): Docker: Refine the main dockerfile. v6.0.54 (#3592)
|
||||
|
@ -70,6 +71,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 5.0 Changelog
|
||||
|
||||
* v5.0, 2023-07-01, Merge [#3605](https://github.com/ossrs/srs/pull/3605): BugFix: Resolve the problem of srs_error_t memory leak. v5.0.163 (#3605)
|
||||
* v5.0, 2023-06-30, Merge [#3596](https://github.com/ossrs/srs/pull/3596): Improve the usage of "transcode" in the "full.conf" file. v5.0.162 (#3596)
|
||||
* v5.0, 2023-06-21, Merge [#3551](https://github.com/ossrs/srs/pull/3551): H264: Fix H.264 ISOM reserved bit value. v5.0.161 (#3551)
|
||||
* v5.0, 2023-06-20, Merge [#3592](https://github.com/ossrs/srs/pull/3592): Fix Permission Issue in depend.sh for OpenSSL Compilation. v5.0.159 (#3592)
|
||||
|
|
|
@ -737,6 +737,7 @@ void SrsDvrSessionPlan::on_unpublish()
|
|||
srs_error_t err = segment->close();
|
||||
if (err != srs_success) {
|
||||
srs_warn("ignore flv close error %s", srs_error_desc(err).c_str());
|
||||
srs_error_reset(err);
|
||||
}
|
||||
|
||||
dvr_enabled = false;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 5
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 162
|
||||
#define VERSION_REVISION 163
|
||||
|
||||
#endif
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 6
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 56
|
||||
#define VERSION_REVISION 57
|
||||
|
||||
#endif
|
||||
|
|
|
@ -409,7 +409,7 @@ srs_error_t SrsRawHEVCStream::mux_sequence_header(std::string vps, std::string s
|
|||
|
||||
SrsFormat format;
|
||||
if ((err = format.initialize()) != srs_success) {
|
||||
return srs_error_new(ERROR_STREAM_CASTER_HEVC_FORMAT, "format failed");
|
||||
return srs_error_wrap(err, "format failed");
|
||||
}
|
||||
// hevc_dec_conf_record
|
||||
SrsHevcDecoderConfigurationRecord *hevc_info = &format.vcodec->hevc_dec_conf_record_;
|
||||
|
@ -420,7 +420,7 @@ srs_error_t SrsRawHEVCStream::mux_sequence_header(std::string vps, std::string s
|
|||
// @doc ITU-T-H.265-2021.pdf, page 54.
|
||||
SrsBuffer vps_stream((char*)vps.data(), vps.length());
|
||||
if ((err = format.hevc_demux_vps(&vps_stream)) != srs_success) {
|
||||
return srs_error_new(ERROR_STREAM_CASTER_HEVC_VPS, "vps demux failed, len=%d", vps.length());
|
||||
return srs_error_wrap(err, "vps demux failed, len=%d", vps.length());
|
||||
}
|
||||
|
||||
// H265 SPS Nal Unit (seq_parameter_set_rbsp()) parser.
|
||||
|
@ -428,7 +428,7 @@ srs_error_t SrsRawHEVCStream::mux_sequence_header(std::string vps, std::string s
|
|||
// @doc ITU-T-H.265-2021.pdf, page 55.
|
||||
SrsBuffer sps_stream((char*)sps.data(), sps.length());
|
||||
if ((err = format.hevc_demux_sps(&sps_stream)) != srs_success) {
|
||||
return srs_error_new(ERROR_STREAM_CASTER_HEVC_SPS, "sps demux failed, len=%d",sps.length());
|
||||
return srs_error_wrap(err, "sps demux failed, len=%d",sps.length());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue