mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
HEVC: Fix nalu vec duplicate when h265 vps/sps/pps demux. v6.0.26 (#3411)
Co-authored-by: chundonglinlin <chundonglinlin@163.com> Co-authored-by: winlin <winlin@vip.126.com>
This commit is contained in:
parent
b957463e5e
commit
3ce57ae6b6
6 changed files with 17 additions and 5 deletions
|
@ -1048,6 +1048,7 @@ srs_error_t SrsFormat::hevc_demux_hvcc(SrsBuffer* stream)
|
|||
dec_conf_rec_p->temporal_id_nested, dec_conf_rec_p->length_size_minus_one, numOfArrays);
|
||||
|
||||
//parse vps/pps/sps
|
||||
dec_conf_rec_p->nalu_vec.clear();
|
||||
for (int index = 0; index < numOfArrays; index++) {
|
||||
if (!stream->require(3)) {
|
||||
return srs_error_new(ERROR_HEVC_DECODE_ERROR, "requires 3 only %d bytes", stream->left());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue