aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* lavc/aacpsdsp: use ptrdiff_t for stride in hybrid_analysisClément Bœsch2017-06-281-1/+1
|
* checkasm: add AAC PS testsClément Bœsch2017-06-285-1/+168
| | | | | | This includes various fixes and improvements from James Almer. Signed-off-by: James Almer <jamrial@gmail.com>
* x86/vf_blend: add sse and ssse3 extremity functionsJames Almer2017-06-271-0/+1
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/utvideodec: decode to GBR(A)PPaul B Mahol2017-06-265-20/+20
| | | | | | | | | | | This is actually internal utvideo format. Allows to make use of SIMD for median prediction for rgb(a) formats, thus speeding up decoding. Simplifies code, eases further developement and maintenance. Update FATE because of pixel format switch. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* fate: update checksums for fate-lavf-ffm and fate-lavf-mxfJames Almer2017-06-242-4/+4
| | | | | | | | | | | | | <@jamrial> durandal_1707: 04aa09c4bc broke fate-lavf-ffm and fate-lavf-mxf <@durandal_1707> how so? <@jamrial> one byte changes <@durandal_1707> jamrial: just update checksums <@jamrial> durandal_1707: but why did they change at all? the commit you reverted didn't affect them <@jamrial> why does reverting it affect these tests? <@jamrial> i don't think updating the checksum without knowing what changed is a good idea <@durandal_1707> jamrial: the lavfi core is in weird state after removal of recursive code <@durandal_1707> jamrial: the change is that older ones would get progressive flag set and new one doesnt <@jamrial> alright
* checkasm: add missing checks to float_dsp's butterflies_float testJames Almer2017-06-231-1/+4
|
* checkasm/aarch64: fix tests returning a floatMatthieu Bouron2017-06-221-4/+4
| | | | | Avoids overriding the v0 register (which containins the result of the tested function) in checkasm_call_checked.
* build: Generalize yasm/nasm-related variable namesDiego Biurrun2017-06-212-2/+2
| | | | | | | | None of them are specific to the YASM assembler. (Cherry-picked from libav commit 39e208f4d4756367c7cd2d581847e0c1b8a429c1) Signed-off-by: James Almer <jamrial@gmail.com>
* fate: use do_md5sum instead of the md5 protocol for most md5 fate testsMarton Balint2017-06-1810-12/+19
| | | | | | | | | | | | | The md5 protocol has no seek support, but some tests use seeks. This changes the fate tests to actually create the output files and calculate the md5 on the written files, which also makes the tests independent of the size of the output buffers and output buffering in general. A new md5pipe fate test method is also introduced to keep the old functionality for tests where using a non-seekable output was intentional, and matroska md5 tests are changed to use that. Signed-off-by: Marton Balint <cus@passwd.hu>
* avutil/tests: remove float_dsp testJames Almer2017-06-141-6/+0
| | | | | | It's been ported to checkasm. Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add float_dsp testsJames Almer2017-06-145-0/+333
| | | | | | Ported from libavutil/tests/float_dsp.c Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add a checkasm_checked_call function that doesn't issue emmsJames Almer2017-06-142-6/+18
| | | | | | | Meant for DSP functions returning a float or double, as they'd fail if emms is called after every run on x86_32. Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add test for -time_base optionMichael Bradshaw2017-06-102-0/+7
| | | | | Signed-off-by: Michael Bradshaw <mjbshaw@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov.c: offset index timestamps by the minimum pts to make first pts zeroSasi Inguva2017-06-091-30/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the videos starts with B frame, then the minimum composition time as computed by stts + ctts will be non-zero. Hence we need to shift the DTS, so that the first pts is zero. This was the intention of that code-block. However it was subtracting by the wrong amount. For example, for one of the videos in the bug nonFormatted.mp4 we have stts: sample_count duration 960 1001 ctts: sample_count duration 1 3003 2 0 1 3003 .... The resulting composition times are : 3003, 1001, 2002, 6006, ... The minimum composition time or PTS is 1001, which should be used to offset DTS. However the code block was wrongly using ctts[0] which is 3003. Hence the PTS was negative. This change computes the minimum pts encountered while fixing the index, and then subtracts it from all the timestamps after the edit list fixes are applied. Samples files available from: https://bugs.chromium.org/p/chromium/issues/detail?id=721451 https://bugs.chromium.org/p/chromium/issues/detail?id=723537 fate-suite/h264/twofields_packet.mp4 is a similar file starting with 2 B frames. Before this change the PTS of first two B-frames was -6006 and -3003, and I am guessing one of them got dropped when being decoded and remuxed to the framecrc before, and now it is not being dropped. Signed-off-by: Sasi Inguva <isasi@google.com>
* fate: add fate-adts-id3v1-demuxJames Almer2017-06-052-1/+13
| | | | | | | | | | | This test the demuxer discarding non ADTS frames at the beginning and end of the input. As a side effect, this commit also enables fate-adts-demux, which was accidentally disabled in 324f0fbff1245f9e9e1dda29ecb03138a2de287d. Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add test for the Dirac low delay profileRostislav Pehlivanov2017-06-052-0/+10
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* FATE: Add test for libavfilter/scale2refKevin Mark2017-06-053-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This new FATE test for the scale2ref filter makes use of the recently added scale2ref-specific variables to maintain the aspect ratio of a test input. Filtergraph explanation: [main] has an AR of 4:3. [ref] has an AR of 16:9. 640 / 4 = 160. So the new width for [main] is 160. 160 / ((320 / 240) * (1 / 1)) = 160 / (4 / 3) = 120. So the new height for [main] is 120. 160 / 120 = 4 / 3 so [main]'s aspect ratio has been maintained while using [ref]'s width as a reference point. [ref] is nullsink'd since it is left unchanged by scale2ref (and so shouldn't need to be tested). If we were to use "iw/4:-1" in place of "iw/4:ow/mdar": 640 / 4 = 160. So the new width for [main] would be 160. 360 / 4 = 90. So the new height for [main] would be 90. 160 / 90 = 16 / 9 so [main] now has the same aspect ratio as [ref] which is probably what you do not want. This is currently the only test for scale2ref. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* checkasm: add _fixed suffix to fixed_dsp testsJames Almer2017-06-011-5/+5
| | | | Should prevents future conflicts with the similarly named floatdsp tests
* tests/fate/libavcodec: Test with all idct and dct modes supported in the testMichael Niedermayer2017-05-311-5/+27
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/tscc2: Skip duplicate framesMichael Niedermayer2017-05-251-8/+0
| | | | | | | | | | This turns CFR duplicated frames into skiped frames Fixes: Timeout Fixes: 1719/clusterfuzz-testcase-minimized-6375090079924224 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aac_adtstoasc: propagate new extradata using packet side dataJames Almer2017-05-243-5/+47
| | | | | | | | | | | | This removes the current API violating behavior of overwritting the stream's extradata during packet filtering, something that should not happen after the av_bsf_init() call. The bitstream filter generated extradata is no longer available during write_header(), and as such not usable with non seekable output. The FATE tests are updated to reflect this. Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add aac-al_sbr_ps_06_ur testJames Almer2017-05-231-0/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/exr : add test for Y, b44A negative half, and datawindow != displaywindowMartin Vignali2017-05-105-0/+37
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5'James Almer2017-05-082-0/+4
|\ | | | | | | | | | | | | * commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5': lavc: add an option for exporting cropping information to the caller Merged-by: James Almer <jamrial@gmail.com>
* | tests/fate/fifo-muxer: update fifo-muxer dependenciesTobias Rapp2017-05-081-1/+1
| | | | | | | | Fixes fate when configured with --disable-network.
* | Merge commit '122de16dd8108a59a55d30543c9f28b5f61b02d1'Clément Bœsch2017-05-051-2/+0
|\| | | | | | | | | | | | | * commit '122de16dd8108a59a55d30543c9f28b5f61b02d1': Replace cmdutils_common_opts.h by a macro Merged-by: Clément Bœsch <cboesch@gopro.com>
* | Merge commit '4e62b57ee03928c12a3119dcaf78ffa1f4d6985f'Clément Bœsch2017-05-051-1/+1
|\| | | | | | | | | | | | | * commit '4e62b57ee03928c12a3119dcaf78ffa1f4d6985f': fate: Skip the checkasm test if CONFIG_STATIC is disabled Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Skip the checkasm test if CONFIG_STATIC is disabledMartin Storsjö2017-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | When building DLLs with MSVC, CONFIG_STATIC is disabled (see d66c52c2b3694 for a more verbose explanation) since the built object files can't be linked statically (which checkasm does). This worked up until recently, only by luck. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'eef860dd92538764f4ab7872812914ff10384268'Clément Bœsch2017-05-051-1/+1
|\| | | | | | | | | | | | | * commit 'eef860dd92538764f4ab7872812914ff10384268': fate: Tweak printing of ignored tests Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Tweak printing of ignored testsMartin Storsjö2016-12-291-1/+1
| | | | | | | | | | | | | | | | Use a tab instead of two spaces, skip the fate prefix for the test name. This makes IGNORE line fit in even better with the other make printouts. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '5c83b4d550ea42653fece092987bab56ccc32ead'Clément Bœsch2017-05-051-1/+1
|\| | | | | | | | | | | | | * commit '5c83b4d550ea42653fece092987bab56ccc32ead': fate: Unset the sig variable if ignoring a test failure Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Unset the sig variable if ignoring a test failureMartin Storsjö2016-12-291-1/+1
| | | | | | | | | | | | | | Otherwise the .rep file would still contain a signal instead of a zero, even if the process returned success. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a'Clément Bœsch2017-05-053-3/+11
|\| | | | | | | | | | | | | * commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a': fate: Add --ignore-tests configure option for omitting specific FATE tests Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Add --ignore-tests configure option for omitting specific FATE testsJanne Grunau2016-12-283-3/+11
| | | | | | | | | | | | | | | | | | This can be useful to filter out noise in known-broken scenarios like miscompilation by legacy compilers and similar. Originally based on a patch by Diego Biurrun. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit '11a9320de54759340531177c9f2b1e31e6112cc2'Clément Bœsch2017-05-031-2/+2
|\| | | | | | | | | | | | | | | | | * commit '11a9320de54759340531177c9f2b1e31e6112cc2': build: Move build-system-related helper files to a separate subdirectory "ffbuild" directory name is used instead of "avbuild". Merged-by: Clément Bœsch <u@pkh.me>
| * build: Move build-system-related helper files to a separate subdirectoryDiego Biurrun2016-12-221-2/+2
| | | | | | | | This unclutters the top-level directory and groups related files together.
| * fate: Add h264 test for frame num gapsDerek Buitenhuis2016-12-142-0/+33
| | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * avutil: fix data race in av_get_cpu_flags()Wan-Teh Chang2016-12-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make the one-time initialization in av_get_cpu_flags() thread-safe. The static variables |flags|, |cpuflags_mask|, and |checked| in libavutil/cpu.c are read and written using normal load and store operations. These are considered as data races. The fix is to use atomic load and store operations. Remove the |checked| variable because the invalid value of -1 for |flags| can be used to indicate the same condition. Rename |flags| to |cpu_flags| and move it to file scope. The fix can be verified by running the libavutil/tests/cpu_init.c test program under ThreadSanitizer: ./configure --toolchain=clang-tsan make libavutil/tests/cpu_init libavutil/tests/cpu_init There should be no warnings from ThreadSanitizer. Co-author: Dmitry Vyukov of Google, who suggested the data race fix. Signed-off-by: Wan-Teh Chang <wtc@google.com>
| * fate: Add spherical and stereo3d mov testsVittorio Giovara2016-12-073-0/+11
| |
* | avfilter/interlace: add complex vertical low-pass filterThomas Mundt2017-05-022-0/+33
| | | | | | | | | | | | | | This complex (-1 2 6 2 -1) filter slightly less reduces interlace 'twitter' but better retain detail and subjective sharpness impression compared to the linear (1 2 1) filter. Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | fate/exr : add test for negative float valueMartin Vignali2017-05-012-0/+9
| | | | | | | | | | | | | | the tested sample contain negative value in the red channel need to be clip to zero, and not set to MAX_RED Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate/exr : add tests for piz uncompressMartin Vignali2017-05-015-0/+36
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate/exr : fix pix_fmtMartin Vignali2017-04-252-2/+2
| | | | | | | | | | | | rgb_scanline_pxr24_half_uint32_13x9.exr doesn't have alpha Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: Add test for pkt_size of ffprobeMichael Niedermayer2017-04-242-1/+198
| | | | | | | | | | Suggested-by: James Almer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests: do not use AVFrame accessorMuhammad Faiz2017-04-234-6/+6
| | | | | | | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | tests/fate-run.sh: Show packet flags for fate gapless tests.Sasi Inguva2017-04-195-61/+61
| | | | | | | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | webm_dash_manifest: Add option to specify bandwidthVignesh Venkatasubramanian2017-04-172-0/+27
| | | | | | | | | | | | | | | | | | Add an option to webm_dash_manifest demuxer to specify a value for "bandwidth" field in the DASH manifest. The value is then used by the muxer. Fixes an existing FIXME in the code. Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: James Zern <jzern@google.com>
* | tests: Fix gray10 and gray12 references after c1616b45.Carl Eugen Hoyos2017-04-1314-42/+42
| |
* | tests/fate/filter-video: fix framerate filter testsMarton Balint2017-04-121-1/+1
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | checkasm: add fixed_dsp testsJames Almer2017-04-115-0/+167
| | | | | | | | | | Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>