Browse Source

Merge pull request #5 from yedajiang44/master

调整G711A解码时字节序
tags/v1.1.0
SmallChi(Koike) 5 years ago
committed by GitHub
parent
commit
9569b06b82
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/JT1078.Flv/Audio/G711ACodec.cs

+ 1
- 1
src/JT1078.Flv/Audio/G711ACodec.cs View File

@@ -98,8 +98,8 @@ namespace JT1078.Flv.Audio
for (int i = 0, offset = 0; i < g711data.Length; i++)
{
short value = AlawToLinear(g711data[i]);
pcmdata[offset++] = (byte)((value >> 8) & 0xff);
pcmdata[offset++] = (byte)(value & 0xff);
pcmdata[offset++] = (byte)((value >> 8) & 0xff);
}
return pcmdata;
}


Loading…
Cancel
Save