summaryrefslogtreecommitdiff
path: root/tests/ref
Commit message (Collapse)AuthorAge
* fate: use do_md5sum instead of the md5 protocol for most md5 fate testsMarton Balint2017-06-18
| | | | | | | | | | | | | 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>
* fate: add test for -time_base optionMichael Bradshaw2017-06-10
| | | | | 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-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-05
| | | | | | | | | | | 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-05
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* FATE: Add test for libavfilter/scale2refKevin Mark2017-06-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* avcodec/tscc2: Skip duplicate framesMichael Niedermayer2017-05-25
| | | | | | | | | | 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-24
| | | | | | | | | | | | 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/exr : add test for Y, b44A negative half, and datawindow != displaywindowMartin Vignali2017-05-10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5'James Almer2017-05-08
|\ | | | | | | | | | | | | * commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5': lavc: add an option for exporting cropping information to the caller Merged-by: James Almer <jamrial@gmail.com>
* | Merge commit '122de16dd8108a59a55d30543c9f28b5f61b02d1'Clément Bœsch2017-05-05
|\| | | | | | | | | | | | | * commit '122de16dd8108a59a55d30543c9f28b5f61b02d1': Replace cmdutils_common_opts.h by a macro Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Add h264 test for frame num gapsDerek Buitenhuis2016-12-14
| | | | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * fate: Add spherical and stereo3d mov testsVittorio Giovara2016-12-07
| |
* | avfilter/interlace: add complex vertical low-pass filterThomas Mundt2017-05-02
| | | | | | | | | | | | | | 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-01
| | | | | | | | | | | | | | 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-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate/exr : fix pix_fmtMartin Vignali2017-04-25
| | | | | | | | | | | | 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-24
| | | | | | | | | | Suggested-by: James Almer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/fate-run.sh: Show packet flags for fate gapless tests.Sasi Inguva2017-04-19
| | | | | | | | | | 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-17
| | | | | | | | | | | | | | | | | | 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-13
| |
* | mjpegenc: enable optimal huffman coding by defaultRostislav Pehlivanov2017-04-09
| | | | | | | | | | | | | | | | As it gives excellent encoding gains at an insignificant speed increase and passes fate without problems, it should now be safe to enable by default. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | lavf: use the new bitstream filter for extracting extradataJames Almer2017-04-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merges commits 8e2ea691351c5079cdab245ff7bfa5c0f3e3bfe4 and 096a8effa3f8f3455292c958c3ed07e798def7bd by Anton Khirnov, with the following change: - extract_extradata_check() is added to know if the codec is supported by the bsf before trying to initialize it. This behaviour is similar to the old AVCodecParser.split checks. The FATE reference changes are due to the filtered out NAL units that the old AVCodecParser.split implementation left alone. Decoding is unchanged as the functions that parse extradata simply ignored said unnecessary NAL units. Signed-off-by: James Almer <jamrial@gmail.com>
* | fate : add test for exr with offset table set to 0Martin Vignali2017-04-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: add bitexact sws_flags to hevc-extradata-reloadJames Almer2017-04-01
| | | | | | | | | | | | | | Makes the test output consistent across all targets. Reviewed-by: nevcairiel Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit '481ff3cf018811ba3235f1c236e970f32a6300b9'Clément Bœsch2017-04-01
|\| | | | | | | | | | | | | | | | | * commit '481ff3cf018811ba3235f1c236e970f32a6300b9': fate: Add h264 and hevc extradata reload tests Only the HEVC part is merged, see 00c80798160f930ce680f98f869c23d91a261f06 Merged-by: Clément Bœsch <u@pkh.me>
| * fate: Add h264 and hevc extradata reload testsVittorio Giovara2016-11-16
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * swscale: Add GRAY12Luca Barbato2016-11-07
| |
| * mov: Evaluate the movie display matrixVittorio Giovara2016-11-01
| | | | | | | | | | | | | | | | | | | | | | This matrix needs to be applied after all others have (currently only display matrix from trak), but cannot be handled in movie box, since streams are not allocated yet. So store it in main context, and apply it when appropriate, that is after parsing the tkhd one. Fate tests are updated accordingly. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | fate/exr : add test for uint32 dataMartin Vignali2017-03-31
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/tests/dict: Check return of av_dict_parse_string()Michael Niedermayer2017-03-30
| | | | | | | | | | | | Fixes: CID1396402 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffprobe: fix printing packet side data informationJames Almer2017-03-29
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'b90c8a3d08e3f9ad4de1253376d2d1d93abb8b8c'James Almer2017-03-27
|\| | | | | | | | | | | | | | | | | * commit 'b90c8a3d08e3f9ad4de1253376d2d1d93abb8b8c': fate: Add tests for mov display matrix Adapted to use ffprobe -show_entries Merged-by: James Almer <jamrial@gmail.com>
| * fate: Add tests for mov display matrixVittorio Giovara2016-11-01
| | | | | | | | | | | | Rotation, sample/display aspect ratio and pure matrix export. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * fate: Update filter-pixfmts-scale gbrap12le hash missing from be9dba5c8aLuca Barbato2016-10-18
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * swscale: Properly load alpha for planar rgbMichael Niedermayer2016-10-18
| | | | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * lavf: use the new bitstream filter for extracting extradataAnton Khirnov2016-10-16
| | | | | | | | | | | | | | | | | | This also fixes a minor bug introduced in the codecpar conversion, where the termination condition for extracting the extradata does not match the actual extradata setting code. As a result, the packet durations made up by lavf go back to their values before the codecpar conversion. That is of little consequence since that code should eventually be dropped completely.
| * swscale: Add the GBRAP12 outputLuca Barbato2016-10-12
| |
| * swscale: Enable GBRP12 outputLuca Barbato2016-10-12
| |
| * swscale: Add missing yuv444p12 swappingVittorio Giovara2016-10-12
| | | | | | | | | | | | | | Missing from 9bd6ea5695660529b2887292874a7b9e61fc301e. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | avcodec/dnxhd_parser: take into account compressed frame size and skip itPaul B Mahol2017-03-24
| | | | | | | | | | | | Fixes #6214 and vsynth1-dnxhd-720p-hr-lb. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit 'dc3fe45fca9c10c4af6bfcf48eb7b81968892ef9'Clément Bœsch2017-03-23
|\| | | | | | | | | | | | | * commit 'dc3fe45fca9c10c4af6bfcf48eb7b81968892ef9': fate: Add test for rscc palette Merged-by: Clément Bœsch <u@pkh.me>
| * fate: Add test for rscc paletteVittorio Giovara2016-10-02
| |
| * pixfmt: Add yuv444p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv422p12 pixel formatLuca Barbato2016-09-27
| |
| * pixfmt: Add yuv420p12 pixel formatLuca Barbato2016-09-27
| |
* | fate: update ref file for apng-clock testJames Almer2017-03-22
| |
* | swscale: remove unused is{RGB,BGR}inBytesClément Bœsch2017-03-20
| |
* | swscale: use a (more correct) function for isPackedClément Bœsch2017-03-20
| |
* | fate: add fate-sws-pixdesc-queryClément Bœsch2017-03-20
| | | | | | | | Test the pixel format querying within libswscale.