summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/ve_vfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/ve_vfw.c')
-rw-r--r--libmpcodecs/ve_vfw.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmpcodecs/ve_vfw.c b/libmpcodecs/ve_vfw.c
index fecf6754ec..71512ec0eb 100644
--- a/libmpcodecs/ve_vfw.c
+++ b/libmpcodecs/ve_vfw.c
@@ -37,9 +37,12 @@ static int config(struct vf_instance_s* vf,
vfw_bih->biWidth=width;
vfw_bih->biHeight=height;
vfw_bih->biSizeImage=width*height*((vfw_bih->biBitCount+7)/8);
- mux_v->bih->biWidth=width;
- mux_v->bih->biHeight=height;
- mux_v->bih->biSizeImage=width*height*((mux_v->bih->biBitCount+7)/8);
+
+ if(!vfw_start_encoder(vfw_bih, mux_v->bih)) return 0;
+
+// mux_v->bih->biWidth=width;
+// mux_v->bih->biHeight=height;
+// mux_v->bih->biSizeImage=width*height*((mux_v->bih->biBitCount+7)/8);
return 1;
}