Fix bad uninit when switching DVB channels.
[mplayer/glamo.git] / libmpcodecs / ve.c
blobc8b1c159a22261ea1695f7b0df3d76f5dc6fa15a
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <string.h>
5 #include "config.h"
6 #include "mp_msg.h"
8 #include "img_format.h"
9 #include "mp_image.h"
10 #include "vf.h"
12 extern vf_info_t ve_info_lavc;
13 extern vf_info_t ve_info_vfw;
14 extern vf_info_t ve_info_raw;
15 extern vf_info_t ve_info_libdv;
16 extern vf_info_t ve_info_xvid;
17 extern vf_info_t ve_info_qtvideo;
18 extern vf_info_t ve_info_nuv;
19 extern vf_info_t ve_info_x264;
21 static vf_info_t* encoder_list[]={
22 #ifdef USE_LIBAVCODEC
23 &ve_info_lavc,
24 #endif
25 #ifdef USE_WIN32DLL
26 &ve_info_vfw,
27 #ifdef USE_QTX_CODECS
28 &ve_info_qtvideo,
29 #endif
30 #endif
31 #ifdef HAVE_LIBDV095
32 &ve_info_libdv,
33 #endif
34 &ve_info_raw,
35 #ifdef HAVE_XVID4
36 &ve_info_xvid,
37 #endif
38 #ifdef USE_LIBLZO
39 &ve_info_nuv,
40 #endif
41 #ifdef HAVE_X264
42 &ve_info_x264,
43 #endif
44 NULL
47 vf_instance_t* vf_open_encoder(vf_instance_t* next, const char *name, char *args){
48 char* vf_args[] = { "_oldargs_", args, NULL };
49 return vf_open_plugin(encoder_list,next,name,vf_args);