Mercurial > mplayer.hg
changeset 15364:d47c75651902
ljpeg codec needs YUVJ colorspace, too
author | reimar |
---|---|
date | Sun, 08 May 2005 10:31:33 +0000 |
parents | 1aa0a05c4b1b |
children | 7259fe943813 |
files | libmpcodecs/ve_lavc.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/ve_lavc.c Sun May 08 09:40:08 2005 +0000 +++ b/libmpcodecs/ve_lavc.c Sun May 08 10:31:33 2005 +0000 @@ -614,7 +614,8 @@ { case IMGFMT_YV12: // HACK, mjpeg accepts PIX_FMT_YUV420P only with vstrict=-1 - if (strcasecmp(lavc_param_vcodec, "mjpeg") == 0) + 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;