Commit 8761c07d authored by michael's avatar michael

10l, Fix YUV ljpeg that i just broke by mistake.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@20792 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent f7fc56d5
......@@ -531,7 +531,7 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment