ソースを参照

Merge pull request #6 from zhulangren/patch-1

Update FlvEncoder.cs
tags/v1.1.0
SmallChi(Koike) 5年前
committed by GitHub
コミット
e7e94687f0
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更5行の追加1行の削除
  1. +5
    -1
      src/JT1078.Flv/FlvEncoder.cs

+ 5
- 1
src/JT1078.Flv/FlvEncoder.cs ファイルの表示

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


読み込み中…
キャンセル
保存