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.
---
The actual diffs are all trivial, e.g. for fate-lavf-mxf:

# $ diff -u <(hd before.mxf) <(hd after.mxf)
# --- /dev/fd/63        2017-08-14 23:30:38.094416594 +0100
# +++ /dev/fd/62        2017-08-14 23:30:38.094416594 +0100
# @@ -313,7 +313,7 @@
#  *
#  00001800  06 0e 2b 34 01 02 01 01  0d 01 03 01 15 01 05 00  
|..+4............|
#  00001810  83 00 60 ed 00 00 01 b3  16 01 20 13 ff ff e0 18  |..`....... 
.....|
# -00001820  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 21 02  
|..............!.|
# +00001820  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 2b 02  
|..............+.|
#  00001830  02 02 05 82 09 00 00 00  01 b8 0b 89 c6 80 00 00  
|................|
#  00001840  01 00 00 0f ff f8 00 00  01 b5 8f ff f3 41 80 00  
|.............A..|
#  00001850  00 01 01 53 d4 4d 02 b7  af 26 81 5b 88 4d 02 80  
|...S.M...&.[.M..|
# @@ -12700,7 +12700,7 @@
#  *
#  00033c00  06 0e 2b 34 01 02 01 01  0d 01 03 01 15 01 05 00  
|..+4............|
#  00033c10  83 00 60 df 00 00 01 b3  16 01 20 13 ff ff e0 18  |..`....... 
.....|
# -00033c20  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 21 02  
|..............!.|
# +00033c20  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 2b 02  
|..............+.|
#  00033c30  02 02 05 82 09 00 00 00  01 b8 0b 89 cb 80 00 00  
|................|
#  00033c40  01 00 00 8f ff f8 00 00  01 b5 8f ff f3 41 80 00  
|.............A..|
#  00033c50  00 01 01 53 f4 61 a4 de  9e d9 ff ea db 1f fd e3  
|...S.a..........|
# @@ -27726,7 +27726,7 @@
#  *
#  00070800  06 0e 2b 34 01 02 01 01  0d 01 03 01 15 01 05 00  
|..+4............|
#  00070810  83 00 60 94 00 00 01 b3  16 01 20 13 ff ff e0 18  |..`....... 
.....|
# -00070820  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 21 02  
|..............!.|
# +00070820  00 00 01 b5 14 8a 00 01  00 00 00 00 01 b5 2b 02  
|..............+.|
#  00070830  02 02 05 82 09 00 00 00  01 b8 0b 89 e5 00 00 00  
|................|
#  00070840  01 00 00 8f ff f8 00 00  01 b5 8f ff f3 41 80 00  
|.............A..|
#  00070850  00 01 01 53 f3 e0 26 01  86 01 86 25 96 dc 37 85  
|...S..&....%..7.|


 libavcodec/mpeg12enc.c                     | 2 +-
 tests/ref/lavf/gxf                         | 2 +-
 tests/ref/lavf/mxf                         | 2 +-
 tests/ref/lavf/mxf_d10                     | 2 +-
 tests/ref/lavf/ts                          | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2             | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-422         | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-idct-int    | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-ilace       | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd   | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-thread      | 2 +-
 tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2             | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-422         | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-idct-int    | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-ilace       | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd   | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-thread      | 2 +-
 tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc | 2 +-
 19 files changed, 19 insertions(+), 19 deletions(-)

diff --git a/libavcodec/mpeg12enc.c b/libavcodec/mpeg12enc.c
index 103f3aaa7..406950901 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
diff --git a/tests/ref/lavf/gxf b/tests/ref/lavf/gxf
index 8dfd63d64..a390a070f 100644
--- a/tests/ref/lavf/gxf
+++ b/tests/ref/lavf/gxf
@@ -1,3 +1,3 @@
-a1cf0a335ad64ec526bb69bbca0656c2 *./tests/data/lavf/lavf.gxf
+bfc25e31136275aff0f9126610b8a7e4 *./tests/data/lavf/lavf.gxf
 796428 ./tests/data/lavf/lavf.gxf
 ./tests/data/lavf/lavf.gxf CRC=0xd04c769f
diff --git a/tests/ref/lavf/mxf b/tests/ref/lavf/mxf
index 09e3c36bb..105e33a3e 100644
--- a/tests/ref/lavf/mxf
+++ b/tests/ref/lavf/mxf
@@ -1,3 +1,3 @@
-051b982c1b5799eb107339735a090c70 *./tests/data/lavf/lavf.mxf
+7c9efc1b6f5fc65bf39177887512fefd *./tests/data/lavf/lavf.mxf
 525881 ./tests/data/lavf/lavf.mxf
 ./tests/data/lavf/lavf.mxf CRC=0x773f059a
diff --git a/tests/ref/lavf/mxf_d10 b/tests/ref/lavf/mxf_d10
index 8a62bb092..74991a575 100644
--- a/tests/ref/lavf/mxf_d10
+++ b/tests/ref/lavf/mxf_d10
@@ -1,3 +1,3 @@
-96f933913835a439dd97144303dc8929 *./tests/data/lavf/lavf.mxf_d10
+5fbb6252f6b146cd36d1491ca96ad8a3 *./tests/data/lavf/lavf.mxf_d10
 5330989 ./tests/data/lavf/lavf.mxf_d10
 ./tests/data/lavf/lavf.mxf_d10 CRC=0x4474d480
diff --git a/tests/ref/lavf/ts b/tests/ref/lavf/ts
index caf08a85b..6846f700c 100644
--- a/tests/ref/lavf/ts
+++ b/tests/ref/lavf/ts
@@ -1,3 +1,3 @@
-f74d6f4d4073f4242cec3d5fee099779 *./tests/data/lavf/lavf.ts
+7a479525b7dc9264291cb2fc3e1d28e5 *./tests/data/lavf/lavf.ts
 406456 ./tests/data/lavf/lavf.ts
 ./tests/data/lavf/lavf.ts CRC=0xb4ca6cdc
diff --git a/tests/ref/vsynth/vsynth1-mpeg2 b/tests/ref/vsynth/vsynth1-mpeg2
index d0baa0ac8..15b27ea15 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2
+++ b/tests/ref/vsynth/vsynth1-mpeg2
@@ -1,4 +1,4 @@
-50c344f0e0e3c65001a68b2c899a283f *tests/data/fate/vsynth1-mpeg2.mpeg2video
+080866b0a4570c672ccc7cf3e6e7bec7 *tests/data/fate/vsynth1-mpeg2.mpeg2video
 728104 tests/data/fate/vsynth1-mpeg2.mpeg2video
 b41ca49c1a02e66ce64d262e2cdaec15 *tests/data/fate/vsynth1-mpeg2.out.rawvideo
 stddev:    7.65 PSNR: 30.45 MAXDIFF:   84 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-422 
b/tests/ref/vsynth/vsynth1-mpeg2-422
index 1209e8879..80acf6146 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-422
+++ b/tests/ref/vsynth/vsynth1-mpeg2-422
@@ -1,4 +1,4 @@
-c2124749526d2d4d41398d52557fad1b *tests/data/fate/vsynth1-mpeg2-422.mpeg2video
+e59f232030cd0fb7e7839e3f8cd6a1b7 *tests/data/fate/vsynth1-mpeg2-422.mpeg2video
 728260 tests/data/fate/vsynth1-mpeg2-422.mpeg2video
 eb7fe83ce09af2d79ec16577c9d44e3c 
*tests/data/fate/vsynth1-mpeg2-422.out.rawvideo
 stddev:   10.29 PSNR: 27.88 MAXDIFF:  168 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-idct-int 
b/tests/ref/vsynth/vsynth1-mpeg2-idct-int
index cc789bbc2..b74256a06 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-idct-int
+++ b/tests/ref/vsynth/vsynth1-mpeg2-idct-int
@@ -1,4 +1,4 @@
-d0cc23c61c4afcfdf0fea53b31c6df38 
*tests/data/fate/vsynth1-mpeg2-idct-int.mpeg2video
+308f13d87d676c5c2964d25ee98fd58d 
*tests/data/fate/vsynth1-mpeg2-idct-int.mpeg2video
 725728 tests/data/fate/vsynth1-mpeg2-idct-int.mpeg2video
 8130f71a467315c9e7bd1a25a01dbb23 
*tests/data/fate/vsynth1-mpeg2-idct-int.out.rawvideo
 stddev:    7.65 PSNR: 30.45 MAXDIFF:   80 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-ilace 
b/tests/ref/vsynth/vsynth1-mpeg2-ilace
index 81e43c5c9..bab678c4e 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-ilace
+++ b/tests/ref/vsynth/vsynth1-mpeg2-ilace
@@ -1,4 +1,4 @@
-c8e27cddb2da4d76816c258b6e3d1fab 
*tests/data/fate/vsynth1-mpeg2-ilace.mpeg2video
+aad9db175e5737ab64a6615879cc7f45 
*tests/data/fate/vsynth1-mpeg2-ilace.mpeg2video
 737533 tests/data/fate/vsynth1-mpeg2-ilace.mpeg2video
 97615390fdd69abfcbc7e02df863a7d2 
*tests/data/fate/vsynth1-mpeg2-ilace.out.rawvideo
 stddev:    7.67 PSNR: 30.43 MAXDIFF:   84 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd 
b/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
index 647525dbb..d95a82aae 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
+++ b/tests/ref/vsynth/vsynth1-mpeg2-ivlc-qprd
@@ -1,4 +1,4 @@
-ba08be2c6209f6b88be97e6fe74911db 
*tests/data/fate/vsynth1-mpeg2-ivlc-qprd.mpeg2video
+b8bcbf82af12bef19b62a65e1cd19ac4 
*tests/data/fate/vsynth1-mpeg2-ivlc-qprd.mpeg2video
 783612 tests/data/fate/vsynth1-mpeg2-ivlc-qprd.mpeg2video
 98eb9da15f880978e7f2ee1e7ce476ef 
*tests/data/fate/vsynth1-mpeg2-ivlc-qprd.out.rawvideo
 stddev:   10.07 PSNR: 28.06 MAXDIFF:  165 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-thread 
b/tests/ref/vsynth/vsynth1-mpeg2-thread
index 1a479bcd9..3cb9ba92f 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-thread
+++ b/tests/ref/vsynth/vsynth1-mpeg2-thread
@@ -1,4 +1,4 @@
-c17bee51286e13b0c95a504391632087 
*tests/data/fate/vsynth1-mpeg2-thread.mpeg2video
+e93f5d45ee16e5daa76f6fa670b93002 
*tests/data/fate/vsynth1-mpeg2-thread.mpeg2video
 801373 tests/data/fate/vsynth1-mpeg2-thread.mpeg2video
 d1658911ca83f5616c1d32abc40750de 
*tests/data/fate/vsynth1-mpeg2-thread.out.rawvideo
 stddev:    7.63 PSNR: 30.48 MAXDIFF:  110 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc 
b/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
index b211c94a9..f8ab2e199 100644
--- a/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
+++ b/tests/ref/vsynth/vsynth1-mpeg2-thread-ivlc
@@ -1,4 +1,4 @@
-9f3991d18d5dc5240ca61b158ce76521 
*tests/data/fate/vsynth1-mpeg2-thread-ivlc.mpeg2video
+a6399b82227292955612b0917c7ef4ca 
*tests/data/fate/vsynth1-mpeg2-thread-ivlc.mpeg2video
 791833 tests/data/fate/vsynth1-mpeg2-thread-ivlc.mpeg2video
 d1658911ca83f5616c1d32abc40750de 
*tests/data/fate/vsynth1-mpeg2-thread-ivlc.out.rawvideo
 stddev:    7.63 PSNR: 30.48 MAXDIFF:  110 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2 b/tests/ref/vsynth/vsynth2-mpeg2
index 7f441cb1f..02071e036 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2
+++ b/tests/ref/vsynth/vsynth2-mpeg2
@@ -1,4 +1,4 @@
-48d5feed5d7866457216577a75b60d59 *tests/data/fate/vsynth2-mpeg2.mpeg2video
+0cf4cc4acbd5e19196890b66d88a428a *tests/data/fate/vsynth2-mpeg2.mpeg2video
 268229 tests/data/fate/vsynth2-mpeg2.mpeg2video
 5887392ff0a05babc480e9f29a1797a3 *tests/data/fate/vsynth2-mpeg2.out.rawvideo
 stddev:    5.55 PSNR: 33.23 MAXDIFF:   77 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-422 
b/tests/ref/vsynth/vsynth2-mpeg2-422
index ea30134fe..257101851 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-422
+++ b/tests/ref/vsynth/vsynth2-mpeg2-422
@@ -1,4 +1,4 @@
-392cd150d65892060374ef0ca98b53c3 *tests/data/fate/vsynth2-mpeg2-422.mpeg2video
+cf1ee8bc65f87fbe7b7ee76545bd45a9 *tests/data/fate/vsynth2-mpeg2-422.mpeg2video
 379371 tests/data/fate/vsynth2-mpeg2-422.mpeg2video
 fa9fda9c92a455b39ae7e516b7de6919 
*tests/data/fate/vsynth2-mpeg2-422.out.rawvideo
 stddev:    4.16 PSNR: 35.73 MAXDIFF:   70 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-idct-int 
b/tests/ref/vsynth/vsynth2-mpeg2-idct-int
index fe1ed8d3b..f5a075bad 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-idct-int
+++ b/tests/ref/vsynth/vsynth2-mpeg2-idct-int
@@ -1,4 +1,4 @@
-4fa4ce9e167fb1816522126d36acfd3c 
*tests/data/fate/vsynth2-mpeg2-idct-int.mpeg2video
+5e121ff369249a98e080a50af2dadbbb 
*tests/data/fate/vsynth2-mpeg2-idct-int.mpeg2video
 267430 tests/data/fate/vsynth2-mpeg2-idct-int.mpeg2video
 b750f48d58f157da94613fe92012e7a5 
*tests/data/fate/vsynth2-mpeg2-idct-int.out.rawvideo
 stddev:    5.56 PSNR: 33.22 MAXDIFF:   77 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-ilace 
b/tests/ref/vsynth/vsynth2-mpeg2-ilace
index 565caf3d0..412d2827c 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-ilace
+++ b/tests/ref/vsynth/vsynth2-mpeg2-ilace
@@ -1,4 +1,4 @@
-be3bd3d5393320419e82afaaea6c6fb6 
*tests/data/fate/vsynth2-mpeg2-ilace.mpeg2video
+39c214a63ef520d00594ca1f37c5872a 
*tests/data/fate/vsynth2-mpeg2-ilace.mpeg2video
 275014 tests/data/fate/vsynth2-mpeg2-ilace.mpeg2video
 fe069b1be5c6aa5808c0840008485912 
*tests/data/fate/vsynth2-mpeg2-ilace.out.rawvideo
 stddev:    5.57 PSNR: 33.20 MAXDIFF:   77 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd 
b/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
index 58feb9394..3e49a38fa 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
+++ b/tests/ref/vsynth/vsynth2-mpeg2-ivlc-qprd
@@ -1,4 +1,4 @@
-5e938746a4b50f496db6faa10cbe98d6 
*tests/data/fate/vsynth2-mpeg2-ivlc-qprd.mpeg2video
+f6851fb214f3b5205362a32b06ab4917 
*tests/data/fate/vsynth2-mpeg2-ivlc-qprd.mpeg2video
 269774 tests/data/fate/vsynth2-mpeg2-ivlc-qprd.mpeg2video
 91316e6e990ee20b4a8de33f9e6adc56 
*tests/data/fate/vsynth2-mpeg2-ivlc-qprd.out.rawvideo
 stddev:    5.54 PSNR: 33.25 MAXDIFF:   94 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-thread 
b/tests/ref/vsynth/vsynth2-mpeg2-thread
index 9c44e9f2c..d7f8bcdf0 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-thread
+++ b/tests/ref/vsynth/vsynth2-mpeg2-thread
@@ -1,4 +1,4 @@
-722c04a6a442e0ae716e879dff4b6639 
*tests/data/fate/vsynth2-mpeg2-thread.mpeg2video
+4f68b8830ee1ed90526fb543ea3b9573 
*tests/data/fate/vsynth2-mpeg2-thread.mpeg2video
 230678 tests/data/fate/vsynth2-mpeg2-thread.mpeg2video
 f35531461e7b31bfba66802954329f2e 
*tests/data/fate/vsynth2-mpeg2-thread.out.rawvideo
 stddev:    5.31 PSNR: 33.62 MAXDIFF:   73 bytes:  7603200/  7603200
diff --git a/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc 
b/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
index 6e6763ee1..bd2f527d4 100644
--- a/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
+++ b/tests/ref/vsynth/vsynth2-mpeg2-thread-ivlc
@@ -1,4 +1,4 @@
-32abf166f7a6fdb8e4b46795a60761cc 
*tests/data/fate/vsynth2-mpeg2-thread-ivlc.mpeg2video
+fdae42a7f9d5f5ed97ae134be1c991e7 
*tests/data/fate/vsynth2-mpeg2-thread-ivlc.mpeg2video
 227906 tests/data/fate/vsynth2-mpeg2-thread-ivlc.mpeg2video
 f35531461e7b31bfba66802954329f2e 
*tests/data/fate/vsynth2-mpeg2-thread-ivlc.out.rawvideo
 stddev:    5.31 PSNR: 33.62 MAXDIFF:   73 bytes:  7603200/  7603200
-- 
2.11.0

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to