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