Ver código fonte

Merge pull request #6 from zhulangren/patch-1

Update FlvEncoder.cs
tags/v1.1.0
SmallChi(Koike) 5 anos atrás
committed by GitHub
pai
commit
e7e94687f0
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 5 adições e 1 exclusões
  1. +5
    -1
      src/JT1078.Flv/FlvEncoder.cs

+ 5
- 1
src/JT1078.Flv/FlvEncoder.cs Ver arquivo

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


Carregando…
Cancelar
Salvar