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
This commit is contained in:
reimar 2005-02-23 00:10:26 +00:00
parent 4fb94e1b2c
commit e26ad848c5
1 changed files with 4 additions and 0 deletions

View File

@ -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: