[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.108,1.109

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Feb 23 01:10:28 CET 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv31121/libmpcodecs

Modified Files:
	ve_lavc.c 
Log Message:
Use PIX_FMT_YUVJ420P for mjpeg so that vstrict=-1 is not necessary


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.108
retrieving revision 1.109
diff -u -r1.108 -r1.109
--- ve_lavc.c	22 Feb 2005 20:24:17 -0000	1.108
+++ ve_lavc.c	23 Feb 2005 00:10:26 -0000	1.109
@@ -609,6 +609,10 @@
     switch(lavc_param_format)
     {
 	case IMGFMT_YV12:
+	    // HACK, mjpeg accepts PIX_FMT_YUV420P only with vstrict=-1
+	    if (strcasecmp(lavc_param_vcodec, "mjpeg") == 0)
+	      lavc_venc_context->pix_fmt = PIX_FMT_YUVJ420P;
+	    else
 	    lavc_venc_context->pix_fmt = PIX_FMT_YUV420P;
 	    break;
 	case IMGFMT_422P:




More information about the MPlayer-cvslog mailing list