~ft/mcfs

ref: 49dc43fd64bb77001494be6721380895f1bba971 mcfs/common.h -rw-r--r-- 749 bytes
49dc43fd — Sigrid Solveig Haflínudóttir matroska: handle av1 9 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
enum {
	Nodump = -1,
	Dumpaudio = -2,
	Dumpvideo = -3,

	FmtAv01 = 0x61763031u,
	FmtAvc1 = 0x61766331u,
	FmtMp4a = 0x6d703461u,
	FmtOpus = 0x6f707573u,
	FmtVp08 = 0x76703038u,
	FmtVp09 = 0x76703039u,

	/* fake ones, not supposed to show up in a mp4 */
	FmtVorbis = 0x766f7262u,
	FmtSrt = 0x00737274u, /* srt subtitles */
	FmtMp3 = 0x006d7033u,
	FmtTheora = 0x74687261u,
	FmtFlac = 0x666c6163u,
	FmtAss = 0x00617373u, /* ass subtitles */
};

#define min(a,b) ((a)<=(b)?(a):(b))

extern Biobuf stderr, out;
extern int dflag, trackdump;

#pragma varargck type "T" u32int
int isotypefmt(Fmt *f);

#pragma varargck type "P" uvlong
int srttsfmt(Fmt *f);

int isorun(Biobuf *f);
int matroskarun(Biobuf *f);

u32int crc32(u32int init, u8int *d, ulong len);