summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* lavfi/tests: Fix 16-bit vf_blend test to avoid memory not aligned to 2 bytesAndrey Semashev2018-05-30
| | | | | | | | | | | | | | 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-30
| | | | | | | | | | | | 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-21
| | | | | | 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-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-18
|
* avfilter/vsrc_testsrc: add pal75bars and pal100bars video filter sourcesTobias Rapp2018-05-18
| | | | | | | 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-16
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: Add Sample width/height/x offset/y offset, Display x offset ↵Michael Niedermayer2018-05-12
| | | | | | and F2 offset Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add more tests for hue video filterTobias Rapp2018-05-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-10
| | | | | | | | | | | | | | 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-10
| | | | | | | | | 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-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Stored F2 Offset / Image Start/End Offset for D10Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Write Audio Ref Level for D10Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add Padding BitsMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: add white/black ref /color rangeMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add vertical subsampling supportMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Add object model versionMichael Niedermayer2018-05-08
| | | | | | 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-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Bump minor versions for S377-1-2009Michael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfenc: Correct KAG alignment of prefaceMichael Niedermayer2018-05-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/hapenc : remove tests due to inconsistent resultMartin Vignali2018-05-08
|
* checkasm: add vf_nlmeans test for ssd_integral_imageClément Bœsch2018-05-08
|
* fate: update fate-sws-pixdesc-query reference fileJames Almer2018-05-05
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate: update pad pixfmt testPaul B Mahol2018-05-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swscale: add gray14 supportPaul B Mahol2018-05-05
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/drawutils: add support for full rangePaul B Mahol2018-05-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/yuv4mpegdec: simplify mathPaul B Mahol2018-05-03
| | | | | | This one actually works with hd1080 y4m files when seeking backwards. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* fate/cbs: Always overwrite output in cbs fate testsMark Thompson2018-05-02
| | | | | Before this, a failed test would keep failing because the output file is not cleaned up and subsequent runs would refuse to overwrite it.
* lavc/cbs: Add tests for VP9Mark Thompson2018-05-02
| | | | | | Uses the same mechanism as other codecs - conformance test files are passed through the metadata filter (which, with no options, reads the input and writes it back) and the output verified to match the input.
* avformat/qtpalette: parse color table according to the QuickTime file format ↵Marton Balint2018-04-30
| | | | | | | | | | | specs The specs says that the the first color component in the color array is not alpha, but simply 0. Fixes 0 alpha of fate-suite/cvid/catfight-cvid-pal8-partial.mov Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/vf_fieldmatch: use correct subsamplings for y0a, y1a and startxPaul B Mahol2018-04-28
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavu/threadmessage: add av_thread_message_queue_nb_elems()Clément Bœsch2018-04-26
|
* mov: Properly abide by the track's media durationDerek Buitenhuis2018-04-26
| | | | | | | | | | | | | | | | | The track's media duration from the mdhd atom takes precedence over both the stts and elst atom for calculating and setting the track's total duraion. Technically, we shouldn't be using the stts atom at all for calculating stream durations. This fixes incorrect stream and final packet durations on files with edit lists that are longer than the media duration. The FATE changes are expected, and output is more correct (the AAC frame is not 1028 samples). Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/vc1: add overlap smooting and loop filter for frame/field-interlaceJerome Borsboom2018-04-25
| | | | | | | | Add previously omitted overlap smooting and loop filtering for frame/field-interlace pictures. For progressive pictures switch to the re-implemented versions of overlap smooting and loop filtering. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avcodec/vc1: implement interlaced out-of-bounds reference pixel replicationJerome Borsboom2018-04-25
| | | | | | | | | | The existing implementation did out-of-bounds reference pixel replication for progressive reference frames. In interlaced reference frames both the even and odd line on the horizontal edges need to be replicated. Fixes #3262. Signed-off-by: Jerome Borsboom <jerome.borsboom@carpalis.nl>
* avformat/yuv4mpegdec: fix seeking backwardsPaul B Mahol2018-04-25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* swscale/swscale_unscaled : add X86_64 (SSE2 and AVX) for uyvyto422Martin Vignali2018-04-22
| | | | and checkasm test
* avformat/mov: Increase support for common encryption.Jacob Trimble2018-04-19
| | | | | | | | | | | | | | | | | | - Parse schm atom to get different encryption schemes. - Allow senc atom to appear in track fragments. - Allow 16-byte IVs. - Allow constant IVs (specified in tenc). - Allow only tenc to specify encryption (i.e. no senc/saiz/saio). - Use sample descriptor to detect clear fragments. This doesn't support: - Different sample descriptor holding different encryption info. - Only first sample descriptor can be encrypted. - Encrypted sample groups (i.e. seig). - Non-'cenc' encryption scheme when using -decryption_key. Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/checkasm/checkasm: Provide verbose failure information on ↵Michael Niedermayer2018-04-14
| | | | | | | | float_near_abs_eps() failures This will make understanding failures and adjusting EPS easier Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/fate/filter-video: Use a bitexact/lossless input sample for ↵Michael Niedermayer2018-04-13
| | | | | | fate-filter-metadata-silencedetect Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: to test program sub stream selection by its type in mpegtsBela Bodecs2018-04-12
| | | | | Signed-off-by: Bela Bodecs <bodecsb@vivanet.hu> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/aac: Parse all ID3 tags present between ADTS framesMattias Amnefelt2018-04-12
| | | | | | | | Some ADTS streams can have multiple ID3 tags between frames. This change parses all of them, rather than just the first one. Signed-off-by: Mattias Amnefelt <mattiasa@avm.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* checkasm/vf_blend : add test for 16 bit version ofMartin Vignali2018-04-05
| | | | | | | | grainextract grainmerge average extremity negation
* lavc/cfhd: fix distortion of lowest 8 lines when height is not multiple of 16Gagandeep Singh2018-04-03
| | | | Also update fate reference. Fixes ticket #6675.
* avcodec/aic: fix decoding of videos which height is not multiple of 16Paul B Mahol2018-04-02
| | | | | | | Fate output changes and under close inspection looks more correct. Fixes #6187. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lav*,tests: remove several register_all callsJosh de Kock2018-04-02
| | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* lavc: prefer the mp3float decoder to the mp3 decoderRostislav Pehlivanov2018-04-01
| | | | | | | | | On modern x86 systems its around 2x faster. For systems without FPUs it'll be slower, but our policy is to prefer floating point implementations and to let users decide what's best (or just not compile them on systems without FPUs). Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* checkasm/Makefile: add EXTRALIBS-libavformatJosh de Kock2018-03-31
| | | | Signed-off-by: Josh de Kock <josh@itanimul.li>
* fate: add test for eac3 dependant streamJames Almer2018-03-30
| | | | Signed-off-by: James Almer <jamrial@gmail.com>