Selaa lähdekoodia

Merge pull request #6 from zhulangren/patch-1

Update FlvEncoder.cs
tags/v1.1.0
SmallChi(Koike) 5 vuotta sitten
committed by GitHub
vanhempi
commit
e7e94687f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. +5
    -1
      src/JT1078.Flv/FlvEncoder.cs

+ 5
- 1
src/JT1078.Flv/FlvEncoder.cs Näytä tiedosto

@@ -217,7 +217,11 @@ namespace JT1078.Flv
flvMessagePackWriter.WriteArray(flvHeader);
// always 0
flvMessagePackWriter.WriteUInt32(0);
//解析sps
//解析sps
if (sps == null)
{
return null;
}
var rawData = h264Decoder.DiscardEmulationPreventionBytes(sps.RawData);
ExpGolombReader h264GolombReader = new ExpGolombReader(rawData);
SPSInfo spsInfo = h264GolombReader.ReadSPS();


Ladataan…
Peruuta
Tallenna