[Mplayer-cvslog] CVS: main/libvo vo_dxr3.c,1.42,1.43

David Holm mswitch at mplayer.dev.hu
Sun Feb 3 16:10:50 CET 2002


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv21772/libvo

Modified Files:
	vo_dxr3.c 
Log Message:
Forgot the osd fix in the other patch, well, here it is  ;)


Index: vo_dxr3.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_dxr3.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- vo_dxr3.c	3 Feb 2002 14:55:27 -0000	1.42
+++ vo_dxr3.c	3 Feb 2002 15:10:47 -0000	1.43
@@ -170,7 +170,7 @@
 		avc_context->width = v_width;
 		avc_context->height = v_height;
 		avc_context->frame_rate = 30 * FRAME_RATE_BASE;
-		avc_context->gop_size = 0;
+		avc_context->gop_size = 12;
 		avc_context->bit_rate = 8e6;
 		avc_context->flags = CODEC_FLAG_HQ;
 		avc_context->pix_fmt = PIX_FMT_YUV420P;
@@ -243,13 +243,10 @@
 	switch (img_format) {
 	case IMGFMT_BGR24:
 	case IMGFMT_YV12:
+	case IMGFMT_YUY2:
 		vo_draw_alpha_yv12(w, h, src, srca, srcstride,
 			avc_picture.data[0] + (x0 + d_pos_x) + (y0 + d_pos_y) * avc_picture.linesize[0], avc_picture.linesize[0]);
 		break;
-	case IMGFMT_YUY2:
-		vo_draw_alpha_yuy2(w, h, src, srca, srcstride,
-			avc_picture.data[0] + (x0 + d_pos_x) * 2 + (y0 + d_pos_y) * avc_picture.linesize[0], avc_picture.linesize[0]);
-		break;
 	}
 #endif
 }
@@ -286,6 +283,7 @@
 			rgb24toyv12(src[0], avc_picture.data[0], avc_picture.data[1], avc_picture.data[2],
 				v_width, v_height, avc_picture.linesize[0], avc_picture.linesize[1], v_width*3);
 		}
+		draw_osd();
 		size = avcodec_encode_video(avc_context, avc_outbuf, avc_outbuf_size, &avc_picture);
 		write(fd_video, avc_outbuf, size);
 		return 0;




More information about the MPlayer-cvslog mailing list