Skip to content

Commit 6754b1c

Browse files
author
snakemeat
committed
[MPEG DEMUX] Fix ATRAC3 stream detection for PMF. LPCM may also need adjustment.
git-svn-id: https://svn.code.sf.net/p/vgmtoolbox/code@747 a691631e-124d-0410-8249-85b9adaa1b1e
1 parent 0ae478d commit 6754b1c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

format/VGMToolbox/format/SonyPamStream.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ public class SonyPamStream : SonyPmfStream
1010
{
1111
new public const string DefaultAudioExtension = ".at3";
1212

13+
new public static readonly byte[] Atrac3Bytes = new byte[] { 0x1E, 0x60, 0x14, 0x00 };
14+
1315
public const string Ac3AudioExtension = ".ac3";
1416
public static readonly byte[] Ac3Bytes = new byte[] { 0x1E, 0x60, 0x14, 0x30 };
1517

format/VGMToolbox/format/SonyPmfStream.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public class SonyPmfStream : Mpeg2Stream
1313
public const string Atrac3AudioExtension = ".at3";
1414
public const string LpcmAudioExtension = ".lpcm";
1515

16-
public static readonly byte[] Atrac3Bytes = new byte[] { 0x1E, 0x60, 0x14, 0x00 };
16+
public static readonly byte[] Atrac3Bytes = new byte[] { 0x1E, 0x60, 0x04, 0x00 };
1717
public static readonly byte[] LpcmBytes = new byte[] { 0x1E, 0x61, 0x80, 0x40 };
1818

1919
public const string AvcVideoExtension = ".264";

0 commit comments

Comments
 (0)