forked from duiniuluantanqin/mp4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmax.c
44 lines (30 loc) · 778 Bytes
/
dmax.c
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
37
38
39
40
41
42
43
#include "quicktime.h"
#include "funcprotos.h"
int quicktime_dmax_init(quicktime_dmax_t *dmax)
{
dmax->milliSecs = 0;
return 0;
}
int quicktime_dmax_delete(quicktime_dmax_t *dmax)
{
return 0;
}
int quicktime_dmax_dump(quicktime_dmax_t *dmax)
{
printf(" max packet duration\n");
printf(" milliSecs %lu\n", dmax->milliSecs);
return 0;
}
int quicktime_read_dmax(quicktime_t *file, quicktime_dmax_t *dmax)
{
dmax->milliSecs = quicktime_read_int32(file);
return 0;
}
int quicktime_write_dmax(quicktime_t *file, quicktime_dmax_t *dmax)
{
quicktime_atom_t atom;
quicktime_atom_write_header(file, &atom, "dmax");
quicktime_write_int32(file, dmax->milliSecs);
quicktime_atom_write_footer(file, &atom);
return 0;
}