[FFmpeg-devel] [PATCH 2/2] fate: add api-h264-slice test

Michael Niedermayer michael at niedermayer.cc
Wed Sep 26 14:16:40 EEST 2018


On Wed, Sep 26, 2018 at 10:35:05AM +0100, joshdk at ob-encoder.com wrote:
> From: Josh de Kock <joshdk at obe.tv>
> 
> This test ensures that you are able to send N number of slice NALUs in slice threaded mode to be decoded simultaneously
> ---
>  tests/api/Makefile              |   1 +
>  tests/api/api-h264-slice-test.c | 208 +++++++++++++++++++++
>  tests/fate/api.mak              |   4 +
>  tests/ref/fate/api-h264-slice   | 309 ++++++++++++++++++++++++++++++++
>  4 files changed, 522 insertions(+)
>  create mode 100644 tests/api/api-h264-slice-test.c
>  create mode 100644 tests/ref/fate/api-h264-slice

fails on mingw32:
src/tests/api/api-h264-slice-test.c:35:22: fatal error: sys/mman.h: No such file or directory
 #include <sys/mman.h>
                      ^
compilation terminated.
make: *** [tests/api/api-h264-slice-test.o] Error 1


fails on linux x86-32
segfaults without debug symbols, with debug symbols it gives wrong results:

...
-0,        282,        282,        1,   152064, 0fd5bb9259e8c27aba7670b08cd9a26b
-0,        283,        283,        1,   152064, 43d6df9fd672b13e2c59db924e9fe30b
-0,        284,        284,        1,   152064, 3aaf3b87705c46495c9d1b9f4ea706bf
-0,        285,        285,        1,   152064, 0d2ba631f5c716d9c5e5b2a75d3b6433
-0,        286,        286,        1,   152064, bf29cc016dce85e621aaa7647fae1544
-0,        287,        287,        1,   152064, 3374284a808d79e9be32bf3610b0fd17
-0,        288,        288,        1,   152064, ea3f305e76009f3bf2cd5014d339eafa
-0,        289,        289,        1,   152064, 95ce7320a841a71b5a8871cef385ce41
-0,        290,        290,        1,   152064, 88613d96dbda681edab4ed41c3f08536
-0,        291,        291,        1,   152064, b9e9e9045b91c4f7917274088de64a5e
-0,        292,        292,        1,   152064, e0b90055449e7403289a8dda9c02add0
-0,        293,        293,        1,   152064, 367ee1603fa7778dad3e99be8db779ee
-0,        294,        294,        1,   152064, 6bb0eaa6140d673b452eee6ac6c262c2
-0,        295,        295,        1,   152064, 9af4ef919ae61e1597db1b9acd6af95a
-0,        296,        296,        1,   152064, e8f29872e86e54ac26b5fb0a20f10d3e
-0,        297,        297,        1,   152064, 09aaad95cd7d173bfe609b79440cbfc8
-0,        298,        298,        1,   152064, c03abe502be10f76e33d93e1c40cc674
-0,        299,        299,        1,   152064, 3e7e315be8aef281714a63f4cf086085
+0,          0, 692286055952568832,        1, 1432681200, `{¦
+0, 4294967297, 692284681563034112,        1, 1432681200, `{¦
+0, 8589934594, 692283032295592448,        1, 1432681200, `{¦
+0, 12884901891, 692283307173499392,        1, 1432681200, `{¦
+0, 17179869188, 693347084673372672,        1, 1432681200, `{¦
+0, 21474836485, 693474078266380800,        1, 1432681200, `{¦
+0, 25769803782, 695678873957978624,        1, 1432681200, `{¦
+0, 30064771079, 692277809615360512,        1, 1432681200, `{¦
+0, 34359738376, 695683272004489728,        1, 1432681200, `{¦
+0, 38654705673, 695678873957978624,        1, 1432681200, `{¦
+0, 42949672970, 693474078266380800,        1, 1432681200, `{¦
+0, 47244640267, 693347084673372672,        1, 1432681200, `{¦
+0, 51539607564, 692277809615360512,        1, 1432681200, `{¦
+0, 55834574861, 692277809615360512,        1, 1432681200, `{¦
+0, 60129542158, 695678873957978624,        1, 1432681200, `{¦
...



[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180926/fb16e07d/attachment.sig>


More information about the ffmpeg-devel mailing list