You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
459 B

  1. using JT1078.Protocol.H264;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Text;
  5. using Xunit;
  6. namespace JT1078.Flv.Test.H264
  7. {
  8. public class NALUHeaderTest
  9. {
  10. [Fact]
  11. public void Test1()
  12. {
  13. NALUHeader header = new NALUHeader(0xc0);
  14. Assert.Equal(1, header.ForbiddenZeroBit);
  15. Assert.Equal(2, header.NalRefIdc);
  16. Assert.Equal(0, header.NalUnitType);
  17. }
  18. }
  19. }