Browse Source

Merge pull request #6 from zhulangren/patch-1

Update FlvEncoder.cs
tags/v1.1.0
SmallChi(Koike) 5 years ago
committed by GitHub
parent
commit
e7e94687f0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/JT1078.Flv/FlvEncoder.cs

+ 5
- 1
src/JT1078.Flv/FlvEncoder.cs View File

@@ -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();


Loading…
Cancel
Save