diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-23 00:10:26 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-02-23 00:10:26 +0000 |
commit | e26ad848c5b89efed131dd2f65942a5ee050f9e0 (patch) | |
tree | 4b9868d6c81899b613d25243892acbc83716b317 /libmpcodecs | |
parent | 4fb94e1b2c22eab8aad3de605df5cb1aa2f51c1d (diff) |
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/ve_lavc.c | 4 |
1 files changed, 4 insertions, 0 deletions
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: |