[MPlayer-cvslog] CVS: main/libmpcodecs ve_lavc.c,1.115,1.116

Reimar Döffinger CVS syncmail at mplayerhq.hu
Mon May 9 22:04:14 CEST 2005


CVS change done by Reimar Döffinger CVS

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

Modified Files:
	ve_lavc.c 
Log Message:
vstrict=-1 is now less "dangerous", make it default and remove m/ljpeg encoding colorspace hack


Index: ve_lavc.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/ve_lavc.c,v
retrieving revision 1.115
retrieving revision 1.116
diff -u -r1.115 -r1.116
--- ve_lavc.c	8 May 2005 20:51:38 -0000	1.115
+++ ve_lavc.c	9 May 2005 20:04:12 -0000	1.116
@@ -80,7 +80,7 @@
 static int lavc_param_luma_elim_threshold = 0;
 static int lavc_param_chroma_elim_threshold = 0;
 static int lavc_param_packet_size= 0;
-static int lavc_param_strict= 0;
+static int lavc_param_strict= -1;
 static int lavc_param_data_partitioning= 0;
 static int lavc_param_gray=0;
 static float lavc_param_rc_qsquish=1.0;
@@ -620,11 +620,6 @@
     switch(lavc_param_format)
     {
 	case IMGFMT_YV12:
-	    // HACK, mjpeg accepts PIX_FMT_YUV420P only with vstrict=-1
-	    if (strcasecmp(lavc_param_vcodec, "mjpeg") == 0 ||
-	        strcasecmp(lavc_param_vcodec, "ljpeg") == 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