8585
|
1
|
|
2 #include <stdio.h>
|
|
3 #include <stdlib.h>
|
|
4 #include <string.h>
|
|
5 #include <inttypes.h>
|
8591
|
6 #include <unistd.h>
|
8585
|
7
|
|
8 #include "config.h"
|
|
9 #include "../version.h"
|
|
10
|
|
11 #include "wine/mmreg.h"
|
|
12 #include "wine/avifmt.h"
|
|
13 #include "wine/vfw.h"
|
|
14
|
|
15 #include "muxer.h"
|
|
16
|
|
17 muxer_t* muxer_new_muxer(int type){
|
|
18 muxer_t* muxer=malloc(sizeof(muxer_t));
|
|
19 memset(muxer,0,sizeof(muxer_t));
|
|
20 switch (type) {
|
|
21 case MUXER_TYPE_MPEG:
|
|
22 muxer_init_muxer_mpeg(muxer);
|
|
23 break;
|
|
24 case MUXER_TYPE_AVI:
|
|
25 default:
|
|
26 muxer_init_muxer_avi(muxer);
|
|
27 }
|
|
28 return muxer;
|
|
29 }
|