summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* swscale: fix gbrap16 alpha channel issuesJames Cowgill2017-08-051-2/+2
| | | | | | | | | | | | | Fixes filter-pixfmts-scale test failing on big-endian systems due to alpSrc not being cast to (const int32_t**). Also fixes distortions in the output alpha channel values by copying the alpha channel code from the rgba64 case found elsewhere in output.c. Fixes ticket 6555. Signed-off-by: James Cowgill <James.Cowgill@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* speedhq: add FATE testsSteinar H. Gunderson2017-08-034-0/+21
| | | | | | Also add simple FATE tests, based on output produced by the NDI SDK. Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/htmlsubtitles: handle colors starting with many '#'Clément Bœsch2017-08-011-1/+1
|
* lavc/htmlsubtitles: improve line breaks handlingClément Bœsch2017-08-011-0/+1
|
* lavc/tests: add htmlsubtitlesClément Bœsch2017-08-012-0/+11
|
* lavc/htmlsubtitles: improve handling broken garbageClément Bœsch2017-08-015-25/+25
| | | | | | | | | | | | | | | | | | | | This commit switches off forced correct nesting of tags and only keeps it for font tags. See long explanations in the code for the rationale. This results in various FATE changes which I'll explain here: - various swapping in font attributes, this is mostly noise due to the old reverse stack way of printing them. The new one is more correct as the last attribute takes over the previous ones. - unrecognized tags disappears - invalid tags that were previously displayed aren't anymore (instead, we have a warning). This is better for the end user The main benefit of this commit is to be more tolerant to error, leading to a better handling of badly nested tags or random wrong formatting for the end user.
* sws/tests/pixdesc_query: replace rgb based pix fmts with endianess agnostic ↵Clément Bœsch2017-07-301-24/+24
| | | | | | names Fixes ticket #6554
* sws/tests/pixdesc_query: sort pixel formatsClément Bœsch2017-07-301-572/+572
|
* Revert "Revert "lavfi/buffersrc: push the frame deeper if requested.""Nicolas George2017-07-302-4/+4
| | | | | | | | | | | This reverts commit 04aa09c4bcf2d5a634a35da3a3ae3fc1abe30ef8 and reintroduces 0ff5567a30be6d7c804e95997ae282d6bacd76c3 that was temporarily reverted due to minor regressions. It also reverts e5bce8b4ce7b1f3a83998febdfa86a3771df96ce that fixed FATE refs. The fate-ffm change is caused by field_order now being set on the output format because the first frame arrives earlier. The fate-mxf change is assumed to be the same.
* fate: update pixfmt_best test to check for endiannessTobias Rapp2017-07-271-1/+1
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* lavf/movenc: support GPMF track (gpmd) remuxingClément Bœsch2017-07-241-0/+5
| | | | | See https://github.com/gopro/gpmf-parser for more information on the data stream itself.
* ffprobe: Print color properties from show_framesVittorio Giovara2017-07-2111-81/+246
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* fate: add libavdevice/reverse.c to fate-sourceJames Almer2017-07-201-0/+1
|
* pixdesc: Add a test for av_find_best_pix_fmt_of_2()Mark Thompson2017-07-182-0/+5
|
* fate: add sub-srt-badsyntax testMichael Niedermayer2017-07-152-0/+25
| | | | | | Based-on: srt sample by ubitux Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* checkasm: add hybrid_analysis_ileave and hybrid_synthesis_deint tests to ↵James Almer2017-07-131-0/+82
| | | | | | aacpsdsp Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add a g722dsp testJames Almer2017-07-135-0/+69
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add fate-checkasm-sbrdsp targetJames Almer2017-07-051-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: use declare_func_float() in sbrdsp sum_square testJames Almer2017-07-041-1/+1
| | | | | | | | The function returns a float. This fixes the test in x86_32 targets. Signed-off-by: James Almer <jamrial@gmail.com>
* libavfilter/scale2ref: Maintain main input's DARKevin Mark2017-07-041-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The scale2ref filter will now maintain the DAR of the main input and not the DAR of the reference input. This previous behavior was deemed counterintuitive for most (all?) use-cases. Before: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:4/3 flags:0x2 SAR: ((120 * 640) / (160 * 360)) * (1 / 1) = 4 / 3 DAR: (160 / 120) * (4 / 3) = 16 / 9 (main out now same DAR as ref) Now: scale2ref=iw/4:ow/mdar in w:320 h:240 fmt:rgb24 sar:1/1 ref w:640 h:360 fmt:rgb24 sar:1/1 out w:160 h:120 fmt:rgb24 sar:1/1 flags:0x2 SAR: ((120 * 320) / (160 * 240)) * (1 / 1) = 1 / 1 DAR: (160 / 120) * (1 / 1) = 4 / 3 (main out same DAR as main in) The scale2ref FATE test has also been updated. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* checkasm: add sbrdsp testsMatthieu Bouron2017-07-034-1/+302
|
* avcodec/imc: cast float to int prior to comparing with int variableKostya Shishkov2017-07-011-1/+1
| | | | | | | | Update FATE test. Fixes #3886. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* checkasm: randomize the full input buffer in test_hybrid_analysisJames Almer2017-06-301-1/+1
| | | | Missed in the last commit.
* checkasm: fix size of input buffer in test_hybrid_analysisJames Almer2017-06-301-1/+1
|
* fate: Add fate-copy-trac3074Michael Niedermayer2017-06-302-0/+665
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* 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.
OpenPOWER on IntegriCloud