Use parseH265SpsNalUnit instead of parseH265SpsNalUnitPayload

To consistent with the other callsites of NalUnitUtil for parsing H265 SPS
This commit is contained in:
peng bin 2023-04-25 10:07:00 +08:00 committed by Ian Baker
parent 6ae8c8c041
commit d7acae20c0

View File

@ -247,7 +247,7 @@ public final class H265Reader implements ElementaryStreamReader {
System.arraycopy(pps.nalData, 0, csdData, vps.nalLength + sps.nalLength, pps.nalLength); System.arraycopy(pps.nalData, 0, csdData, vps.nalLength + sps.nalLength, pps.nalLength);
NalUnitUtil.H265SpsData spsData = NalUnitUtil.H265SpsData spsData =
NalUnitUtil.parseH265SpsNalUnitPayload(sps.nalData, 40/8, sps.nalLength); NalUnitUtil.parseH265SpsNalUnit(sps.nalData, 3, sps.nalLength); // 3bytes start code
String codecs = String codecs =
CodecSpecificDataUtil.buildHevcCodecString( CodecSpecificDataUtil.buildHevcCodecString(