Mercurial > libavcodec.hg
changeset 10669:aa4c90d19a59 libavcodec
10l, Fix YUV ljpeg that i just broke by mistake.
author | michael |
---|---|
date | Thu, 10 Dec 2009 19:41:47 +0000 |
parents | 6eefb31b1bfc |
children | 7986ecc952e1 |
files | mpegvideo_enc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo_enc.c Thu Dec 10 19:40:15 2009 +0000 +++ b/mpegvideo_enc.c Thu Dec 10 19:41:47 2009 +0000 @@ -531,7 +531,7 @@ case CODEC_ID_MJPEG: s->out_format = FMT_MJPEG; s->intra_only = 1; /* force intra only for jpeg */ - if(avctx->codec->id == CODEC_ID_MJPEG){ + if(avctx->codec->id == CODEC_ID_MJPEG || avctx->pix_fmt != PIX_FMT_BGRA){ s->mjpeg_vsample[0] = 2; s->mjpeg_vsample[1] = 2>>chroma_v_shift; s->mjpeg_vsample[2] = 2>>chroma_v_shift;