We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7944920 commit 488ad38Copy full SHA for 488ad38
ariblib/command/split.py
@@ -1,4 +1,5 @@
1
import itertools
2
+import struct
3
4
from ariblib import packet, tsopen
5
from ariblib.sections import ProgramAssociationSection, ProgramMapSection
@@ -26,10 +27,7 @@ def replace_pat(pat):
26
27
new_pat = bytearray(pat[:16])
28
new_pat[2] = 0x11
29
crc = crc32(new_pat)
- new_pat.append((crc >> 24) & 0xFF)
30
- new_pat.append((crc >> 16) & 0xFF)
31
- new_pat.append((crc >> 8) & 0xFF)
32
- new_pat.append(crc & 0xFF)
+ new_pat.extend(struct.pack('>L', crc))
33
new_pat.extend([0xFF] * 163)
34
return new_pat
35
0 commit comments