diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2010-03-15 19:45:57 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2010-03-15 19:45:57 +0000 |
commit | 802323508c17164ffa78c37cfa6d520f96e3b2a8 (patch) | |
tree | 25fee9415d4c962be9be58098e4bafa0d260488a | |
parent | 2fad0977886f99e11ec1e27f79bcb9c56737bdb0 (diff) | |
download | ffmpeg-802323508c17164ffa78c37cfa6d520f96e3b2a8.tar.gz |
Allow mpeg style yuv in jpeg when strict standard compliance is small enough.
Originally committed as revision 22553 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | ffmpeg.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -3147,7 +3147,11 @@ static void new_video_stream(AVFormatContext *oc) if(*p == video_enc->pix_fmt) 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]; } |