From e26ad848c5b89efed131dd2f65942a5ee050f9e0 Mon Sep 17 00:00:00 2001 From: reimar Date: Wed, 23 Feb 2005 00:10:26 +0000 Subject: Use PIX_FMT_YUVJ420P for mjpeg so that vstrict=-1 is not necessary git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14776 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/ve_lavc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'libmpcodecs') diff --git a/libmpcodecs/ve_lavc.c b/libmpcodecs/ve_lavc.c index 34952cff47..2555ef6fc2 100644 --- a/libmpcodecs/ve_lavc.c +++ b/libmpcodecs/ve_lavc.c @@ -609,6 +609,10 @@ static int config(struct vf_instance_s* vf, 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: -- cgit v1.2.3