summaryrefslogtreecommitdiffstats
path: root/mencoder.c
diff options
context:
space:
mode:
authorarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-10 00:55:10 +0000
committerarpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-02-10 00:55:10 +0000
commit224af07cfd59c3fefef830f35a45fb8275621158 (patch)
tree28cea7eb0a422b756fc3a5bf7bfa2e40ad9082d0 /mencoder.c
parent0d18dddced901c3a17c1229504e2990d6f61786b (diff)
downloadmpv-224af07cfd59c3fefef830f35a45fb8275621158.tar.bz2
mpv-224af07cfd59c3fefef830f35a45fb8275621158.tar.xz
temp. workaround for VFW upside-down flip
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4626 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mencoder.c')
-rw-r--r--mencoder.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mencoder.c b/mencoder.c
index dd7bf92bcc..2e1d771c72 100644
--- a/mencoder.c
+++ b/mencoder.c
@@ -1459,6 +1459,7 @@ case VCODEC_VFW: {
aviwrite_write_chunk(muxer,mux_v,muxer_f,0,0);
break;
}
+ flip_upside_down(vo_image_ptr,vo_image_ptr,3*vo_w,vo_h); // dirty hack
ret=vfw_encode_frame(mux_v->bih, mux_v->buffer, vfw_bih, vo_image_ptr, &flags, 10000);
// printf("vfw_encode_frame -> %d (size=%d,flag=%X)\n",ret,mux_v->bih->biSizeImage,flags);
aviwrite_write_chunk(muxer,mux_v,muxer_f,mux_v->bih->biSizeImage,flags);