aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-11-06 14:48:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-11-06 14:48:50 +0100
commitd5999b7f282a5c08f6dc4326c636272b0a4d7c9f (patch)
treefd1f34b6218d5d9df001dc60ee55471cc767ff1c /libavformat
parentda8cb1c361340da8f0127375fc2d7ff2df85f589 (diff)
downloadffmpeg-d5999b7f282a5c08f6dc4326c636272b0a4d7c9f.tar.gz
avformat/yuv4mpegenc: Use AVFormatContext strict_std_compliance instead of AVCodecContext
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/yuv4mpegenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/yuv4mpegenc.c b/libavformat/yuv4mpegenc.c
index a7f2d8ae9b..cc954fcc63 100644
--- a/libavformat/yuv4mpegenc.c
+++ b/libavformat/yuv4mpegenc.c
@@ -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));