mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/yuv4mpegenc: Use AVFormatContext strict_std_compliance instead of AVCodecContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
da8cb1c361
commit
d5999b7f28
@ -268,7 +268,7 @@ static int yuv4_write_header(AVFormatContext *s)
|
||||
case AV_PIX_FMT_YUV420P16:
|
||||
case AV_PIX_FMT_YUV422P16:
|
||||
case AV_PIX_FMT_YUV444P16:
|
||||
if (s->streams[0]->codec->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
|
||||
if (s->strict_std_compliance >= FF_COMPLIANCE_NORMAL) {
|
||||
av_log(s, AV_LOG_ERROR, "'%s' is not a official yuv4mpegpipe pixel format. "
|
||||
"Use '-strict -1' to encode to this pixel format.\n",
|
||||
av_get_pix_fmt_name(s->streams[0]->codec->pix_fmt));
|
||||
|
Loading…
Reference in New Issue
Block a user