aboutsummaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* checkasm/float_dsp: add test for vector_dmulJames Almer2018-09-141-0/+24
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/loco: switch to planar rgb formatPaul B Mahol2018-09-101-5/+5
| | | | Remove now unused step variable.
* tests/fate: fix lut hash for gray14Paul B Mahol2018-09-091-1/+1
|
* avcodec/lagarith: switch to planar rgbPaul B Mahol2018-09-097-87/+87
| | | | Speed goes from 363 fps to 428 fps for 640x480 video.
* Add FATE test for QT format audio descriptors in MP4Derek Buitenhuis2018-09-092-0/+6
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avfilter: add support for gray14 formatPaul B Mahol2018-09-091-0/+1
|
* fate: fix hapqa-extract-nosnappy tests on small buildsJames Almer2018-09-063-4/+2
| | | | | | Fixes ticket #7324 Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add 10-bit test for hue video filterTobias Rapp2018-08-312-0/+4
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* tests/ref/fate/pixelutils: Add a newline.Carl Eugen Hoyos2018-08-311-1/+1
| | | | Fixes fate-pixelutils on aix.
* avformat/movenc: implicitly enable negative CTS offsets for ismvJan Ekström2018-08-242-5/+5
| | | | | | | | | | | ISMV lacks any sort of edit list support, as well as tfxd is effectively the PTS of the fragment for most intents and purposes. Thus, if b-frames are requested without negative CTS offsets you end up with N frames' worth of delay (tfxd PTS plus the CTS offset of the first sample). Negative CTS offsets enable the first sample to have CTS=DTS, and thus a/v desync due to b-frame reorder delay is avoided.
* lavc/hevc_ps: fix crop info for monochromeZhao Zhili2018-08-222-0/+11
| | | | | | | The values of SubWidthC and SubHeightC are 1 in the ITU-T H.265. The current code use the value of 2. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/audiointerleave: pad last audio frameBaptiste Coudurier2018-08-211-2/+2
|
* libswscale: Adds conversions from/to float gray format.Sergey Lavrushkin2018-08-1412-0/+22
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavutil: Adds gray floating-point pixel formats.Sergey Lavrushkin2018-08-111-0/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mov.c: Set start_time for all streams (in case of edit lists).Sasi Inguva2018-08-112-0/+8
| | | | | | | | | Fixes vorbis mp4 audio files, with edit list specified. Since st->skip_samples is not set in case of vorbis , ffmpeg computes the start_time as negative. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavutil/pixelutils: add sad_32x32 in pixelutils API.Jun Zhao2018-07-311-0/+12
| | | | | | add sad_32x32 in pixelutils API, and update the fate. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* fate: add tests for audio channel up-/downmixing with pan filterTobias Rapp2018-07-306-22/+146
| | | | | | | | | | | | | Add tests for upmixing and downmixing with audio channel counts that have a corresponding default layout and also tests where there is no default layout. Update the existing "stereo4" test so it actually outputs stereo like the other stereo tests. Rename the previous "stereo4" test into "upmix1". Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* tests/audiogen: raise channel count limit to 12Tobias Rapp2018-07-301-1/+1
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* fate: remove unnecessary reference file for fate-encryption-infoJames Almer2018-07-272-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/tscc: Do not duplicate imagesMichael Niedermayer2018-07-232-259/+0
| | | | | | | | | | This improves speed Fixes: Timeout Fixes: 9010/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TSCC_fuzzer-6042614817095680 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add more vc2 encoder testsJames Darnley2018-07-187-8/+40
|
* avformat/mov: only set handler_name from mdia->hdlrGyan Doshi2018-07-166-8/+8
| | | | | | 6 FATE references updated. Fixes #7104
* fate: allow temp files for passed test to be keptGyan Doshi2018-07-102-2/+5
| | | | | | | | Set make variable KEEP to non-zero value to preserve temp files when a test has passed. Helpful in diagnosing failed tests when test outfile is some type of single hash and does not reveal differences in processed output.
* tests/fate/demux: Add test for d25c945247979a88fac6bb3b7a26370262b96ef1Michael Niedermayer2018-07-072-0/+83
| | | | | | Sample provided by Thierry for fate Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavutil/encryption_info: Add unit tests.Jacob Trimble2018-06-272-0/+4
| | | | | Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* from RTCTIME to N*23, step is 23Steven Liu2018-06-252-1532/+1532
| | | | | | fix ticket: 7225 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/movenc: read track title from correct keyGyan Doshi2018-06-194-7/+7
| | | | | | | | | | da9cc22d5bd allowed the MOV muxer to relay a custom stream handler name, whether populated from the input stream or user-set. However, the entry key didn't match the key set by the MOV demuxer, so it wasn't effective. Fixed. Due to the change, four FATE refs have to be updated. Verified that the target payload of the tests hasn't changed in terms of CRC.
* fate: correct filename references of qt-faststart binaryGyan Doshi2018-06-162-2/+2
| | | | qt-faststart build doesn't have PROGSSUF added.
* qt-faststart: add fate test for stco overflowerankor2018-06-132-2/+11
| | | | | | | verify that the stco atom is upgraded to co64 when the addition of moov size to the offsets results in an overflow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add Dolby E testfoo862018-06-051-0/+5
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mov.c: Set st->start_time for video streams explicitly.Sasi Inguva2018-06-063-1/+38
| | | | | | | If start_time is not set, ffmpeg takes the duration from the global movie instead of the per stream duration. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/tests: Fix 16-bit vf_blend test to avoid memory not aligned to 2 bytesAndrey Semashev2018-05-301-1/+1
| | | | | | | | | | | | | | Generic C implementation of vf_blend performs reads and writes of 16-bit elements, which requires the buffers to be aligned to at least 2-byte boundary. Also, the change fixes source buffer overrun caused by src_offset being added to to test handling of misaligned buffers. Fixes: #7226 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qtrle: Do not output duplicated frames on insufficient inputMichael Niedermayer2018-05-301-109/+0
| | | | | | | | | | | | This improves performance and makes qtrle behave more similar to other decoders. Libavcodec does generally not output known duplicated frames, instead the calling Application can insert them as it needs. Fixes: Timeout Fixes: 6383/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_QTRLE_fuzzer-6199846902956032 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* hwcontext: Add test for device creation and derivationMark Thompson2018-05-212-0/+11
| | | | | | This uses any devices it can find on the host system - on a system with no hardware device support or in builds with no support included it will do nothing and pass.
* avformat/mpegts: add merge_pmt_versions optionAman Gupta2018-05-182-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This new optional flag makes it easier to deal with mpegts samples where the PMT is updated and elementary streams move to different PIDs in the middle of playback. Previously, new AVStreams were created per PID, and it was up to the user to figure out which streams had migrated to a new PID (by iterating over the list of AVProgram and making guesses), and switch seamlessly to the new AVStream during playback. Transcoding or remuxing these streams with ffmpeg on the CLI was also quite painful, and the user would need to extract each set of PIDs into a separate file and then stitch them back together. With this new option, the mpegts demuxer will automatically detect PMT changes and feed data from the new PID to the original AVStream that was created for the orignal PID. For mpegts samples with stream_identifier_descriptor available, the unique ID is used to merge PIDs together. If the stream id is not available, the demuxer attempts to map PIDs based on their position within the PMT. With this change, I am able to playback and transcode/remux these two samples which previously caused issues: https://tmm1.s3.amazonaws.com/pmt-version-change.ts https://kuroko.fushizen.eu/videos/pid_switch_sample.ts I also have another longer sample in which the PMT changes repeatedly and ES streams move to different pids three times during playback: https://tmm1.s3.amazonaws.com/multiple-pmt-change.ts Demuxing this sample with the new option shows several new log messages as the PMT changes are handled: [mpegts] detected PMT change (program=1, version=3/6, pcr_pid=0xf98/0xfb7) [mpegts] re-using existing video stream 0 (pid=0xf98) for new pid=0xfb7 [mpegts] re-using existing audio stream 1 (pid=0xf99) for new pid=0xfb8 [mpegts] re-using existing audio stream 2 (pid=0xf9a) for new pid=0xfb9 [mpegts] detected PMT change (program=1, version=6/3, pcr_pid=0xfb7/0xf98) [mpegts] detected PMT change (program=1, version=3/4, pcr_pid=0xf98/0xf9b) [mpegts] re-using existing video stream 0 (pid=0xf98) for new pid=0xf9b [mpegts] re-using existing audio stream 1 (pid=0xf99) for new pid=0xf9c [mpegts] re-using existing audio stream 2 (pid=0xf9a) for new pid=0xf9d [mpegts] detected PMT change (program=1, version=4/5, pcr_pid=0xf9b/0xfa9) [mpegts] re-using existing video stream 0 (pid=0xf98) for new pid=0xfa9 [mpegts] re-using existing audio stream 1 (pid=0xf99) for new pid=0xfaa [mpegts] re-using existing audio stream 2 (pid=0xf9a) for new pid=0xfab [mpegts] detected PMT change (program=1, version=5/6, pcr_pid=0xfa9/0xfb7) Signed-off-by: Aman Gupta <aman@tmm1.net>
* tests/checkasm/nlmeans: fix invalid read/write on ii bufferClément Bœsch2018-05-181-4/+4
|
* avfilter/vsrc_testsrc: add pal75bars and pal100bars video filter sourcesTobias Rapp2018-05-183-0/+26
| | | | | | | Generates color bar test patterns based on EBU PAL recommendations. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avcodec/xwddec: fix palette alphaMarton Balint2018-05-161-2/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: Add Sample width/height/x offset/y offset, Display x offset ↵Michael Niedermayer2018-05-129-11/+11
| | | | | | and F2 offset Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add more tests for hue video filterTobias Rapp2018-05-115-3/+11
| | | | | | | Adds tests for the hue angle and brightness filter parameters. Renames the existing saturation parameter test for consistency. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* fate/cbs: Add an SEI testMark Thompson2018-05-102-2/+7
| | | | | | | | | | | | | | The artificial sample file sei-1.h264 contains five frames (IDR P B I B) and the following SEI message types: * Buffering period * Picture timing * Pan-scan rectangle (display as 4:3) * User data registered, containing A/53 closed captions (captions match frame content, including reordering) * Recovery point (at the I frame) * Display orientation (identity transformation) * Mastering display (with arbitrary contents) * Undefined SEI type 1234 (containing ascending bytes)
* checkasm/sw_rgb: fix the function declaration warningJun Zhao2018-05-101-1/+1
| | | | | | | | | fix the warning: "function declaration isn’t a prototype", in C int foo() and int foo(void) are different functions. int foo() accepts an arbitrary number of arguments, while int foo(void) accepts 0 arguments. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* avformat/mxfenc: Write transfer characteristicMichael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Stored F2 Offset / Image Start/End Offset for D10Michael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Write Audio Ref Level for D10Michael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Padding BitsMichael Niedermayer2018-05-0819-370/+370
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: add white/black ref /color rangeMichael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add vertical subsampling supportMichael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add object model versionMichael Niedermayer2018-05-089-11/+11
| | | | | | Other tools (XFConvert at least) write this as well. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Product Version, Toolkit version and PlatformMichael Niedermayer2018-05-089-11/+11
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>