Mercurial > mplayer.hg
diff mencoder.c @ 4625:c8e09e9b830b
temp. workaround for VFW upside-down flip
author | arpi |
---|---|
date | Sun, 10 Feb 2002 00:55:10 +0000 |
parents | 9ad42931f595 |
children | a4e774e16b22 |
line wrap: on
line diff
--- a/mencoder.c Sun Feb 10 00:45:56 2002 +0000 +++ b/mencoder.c Sun Feb 10 00:55:10 2002 +0000 @@ -1459,6 +1459,7 @@ 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);