Skip to content

Instantly share code, notes, and snippets.

View github.css
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
import base64
import sys
def get_nalus(file_name, count):
bitstream = open(file_name, "rb")
data =*3000)
data = base64.b16encode(data)
nalus = data.split('00000001')
for nalu in nalus[1:count+1]:
nalu_t = int(nalu[0:2],16) & int('1f',16)