summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-08-12 22:16:13 +0100
committerMark Thompson <sw@jkqxz.net>2017-08-20 15:14:37 +0100
commit4c0588b4562abad5540f6a5435c62828de9e4fdf (patch)
treeb7b49b3c8672f1c648b0137ef9f314cd16b2fa16 /libavcodec
parentb78c30d7ec26af67c00ce2002709a189f6a87a7e (diff)
mpeg2enc: Don't mark all streams as component video
Since there is no information about the source format, "unspecified" is the correct value to write here. All tests using the MPEG-2 encoder are updated, as this changes the header on all outputs.
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpeg12enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 103f3aaa77..406950901e 100644
--- a/libavcodec/mpeg12enc.c
+++ b/libavcodec/mpeg12enc.c
@@ -297,7 +297,7 @@ static void mpeg1_encode_sequence_header(MpegEncContext *s)
put_header(s, EXT_START_CODE);
put_bits(&s->pb, 4, 2); // sequence display extension
- put_bits(&s->pb, 3, 0); // video_format: 0 is components
+ put_bits(&s->pb, 3, 5); // video_format: 5 is unspecified
put_bits(&s->pb, 1, 1); // colour_description
put_bits(&s->pb, 8, s->avctx->color_primaries); // colour_primaries
put_bits(&s->pb, 8, s->avctx->color_trc); // transfer_characteristics