Commit 719775e7 authored by michael's avatar michael

Allow mpeg style yuv in jpeg when strict standard compliance is small enough.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@22553 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b6713b42
...@@ -3147,7 +3147,11 @@ static void new_video_stream(AVFormatContext *oc) ...@@ -3147,7 +3147,11 @@ static void new_video_stream(AVFormatContext *oc)
if(*p == video_enc->pix_fmt) if(*p == video_enc->pix_fmt)
break; break;
} }
if(*p == -1) if(*p == -1
&& !( video_enc->codec_id==CODEC_ID_MJPEG
&& video_enc->strict_std_compliance <= FF_COMPLIANCE_INOFFICIAL
&& ( video_enc->pix_fmt == PIX_FMT_YUV420P
|| video_enc->pix_fmt == PIX_FMT_YUV422P)))
video_enc->pix_fmt = codec->pix_fmts[0]; video_enc->pix_fmt = codec->pix_fmts[0];
} }
......
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