You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
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
This commit is contained in:
6
ffmpeg.c
6
ffmpeg.c
@ -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];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user