changeset 14775:5b5417f6b598

Use PIX_FMT_YUVJ420P for mjpeg so that vstrict=-1 is not necessary
author reimar
date Wed, 23 Feb 2005 00:10:26 +0000
parents f3e72f371b55
children 19993691ca6b
files libmpcodecs/ve_lavc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c	Tue Feb 22 23:43:30 2005 +0000
+++ b/libmpcodecs/ve_lavc.c	Wed Feb 23 00:10:26 2005 +0000
@@ -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: