summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* tests/fate: add mxf metadata streams testMark Reid2016-10-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* FATE: Add test for muxing discontinuous MP4 fragments with large timestampsDerek Buitenhuis2016-10-19
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* fate: add swr-convertaudio testMuhammad Faiz2016-10-18
| | | | | | | test for flt to s16 should pass on correct rounding to nearest Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avformat/matroskaenc: write a DisplayUnit element when aspect ratio is unknownJames Almer2016-10-15
| | | | | | | | | | | We don't currently support values 1 (centimeters), 2 (inches) or 3 (DAR), only the default value 0 (pixels) which doesn't need to be written. The fate refs are updated as unknown SAR is now signaled in the output files with the addition of the new element. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: Improved selftest coverage for libavutil/fifo.cThomas Turner2016-10-14
| | | | | | Tested functions: av_fifo_generic_peek(), av_fifo_grow() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add test for firequalizer filterMuhammad Faiz2016-10-14
| | | | Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avformat/matroskaenc: don't write a FlagInterlaced element if it would write ↵James Almer2016-10-11
| | | | | | | | | | | the default value The spec says: "Mandatory elements with a default value may be left out of the file. In the absence of a mandatory element, the element's default value is used." Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: fix targets for attachment tagsJames Almer2016-10-10
| | | | | | | | | Attachment tags were being written targeting non-existent streams in the output file. Also filter filename and mimetype entries, as they are standard elements in the Attachment master. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: Switch mov_write_uuidprof_tag() to avg_frame_rateMichael Niedermayer2016-10-10
| | | | | | | Using the stream timebase simply overflows Fix integer overflow in psp framerate computation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'dc7501e524dc3270335749302c7aa449973625f3'Hendrik Leppkes2016-10-07
|\ | | | | | | | | | | | | * commit 'dc7501e524dc3270335749302c7aa449973625f3': checkasm: Issue emms after benchmarking functions Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * checkasm: Issue emms after benchmarking functionsMartin Storsjö2016-06-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The functions may not clean up properly after using MMX registers. For the normal testing calls, the checkasm_checked_call functions will do the cleanup (and check that functions that should clean up do it as well), but when benchmarking functions that don't clean up, we don't currently properly clean up at all. This causes issues if a benchmarked function is followed by testing of a function that is supposed to not clobber the MMX/FPU state but doesn't touch it at all. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'Hendrik Leppkes2016-10-07
|\| | | | | | | | | | | | | * commit 'beb62dac629603eb074a44c44389c230b5caac7c': Use AVFrame.pts instead of deprecated pkt_pts. Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
* | tests: add -nostdin flag when calling ffmpegRodger Combs2016-10-06
| | | | | | | | | | | | This fixes a long-standing issue where running FATE in parallel could result in the terminal being left misconfigured, particularly if a test failed or was canceled wtih ^C.
* | avformat/matroskaenc: write a CRC32 element on InfoJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Finishes implementing ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on TagsJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on AttachmentsJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on TracksJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on CuesJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on SeekHeadJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: write a CRC32 element on each ClusterJames Almer2016-10-06
| | | | | | | | | | | | | | | | | | Implements part of ticket #4347 Tested-by: Dave Rice <dave@dericed.com> Tested-by: Jerome Martinez <jerome@mediaarea.net> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskaenc: don't reserve space for stream duration tags if the ↵James Almer2016-10-04
| | | | | | | | | | | | | | | | | | output is not seekable The durations are never written in that situation. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* | fate: add bitexact decode flag to fate-svq3-watermarkJames Almer2016-10-03
| | | | | | | | | | | | Fixes failure with mmxext or 3dnow cpuflags enabled but ssse3 disabled Signed-off-by: James Almer <jamrial@gmail.com>
* | fate: Add PSP copy testMichael Niedermayer2016-10-03
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg: use new decode APIwm42016-10-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a bit messy, mainly due to timestamp handling. decode_video() relied on the fact that it could set dts on a flush/drain packet. This is not possible with the old API, and won't be. (I think doing this was very questionable with the old API. Flush packets should not contain any information; they just cause a FIFO to be emptied.) This is replaced with checking the best_effort_timestamp for AV_NOPTS_VALUE, and using the suggested DTS in the drain case. The modified tests (fate-cavs and others) still fails due to dropping the last frame. This happens because the timestamp of the last frame goes backwards (ffprobe -show_frames shows the same thing). I suspect that this "worked" due to the best effort timestamp logic picking the DTS over the decreasing PTS. Since this logic is in libavcodec (where it probably shouldn't be), this can't be easily fixed. The timestamps of the cavs samples are weird anyway, so I chose not to fix it. Another strange thing is the timestamp handling in the video path of process_input_packet (after the decode_video() call). It looks like the code to increase next_dts and next_pts should be run every time a frame is decoded - but it's needed even if output is skipped.
* | fate: Add regression test for Ticket 186Michael Niedermayer2016-10-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: Add fate-svq3-watermarkMichael Niedermayer2016-10-01
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavf/mov: Read display aspect ratio from ares atom also for dnxhd.Carl Eugen Hoyos2016-09-29
| | | | | | | | | | Fixes aspect ratio of sample in ticket #2125. Fixes aspect ratio of sample in ticket #5325.
* | lavf/mov.c: Make audio timestamps strictly monotonically increasing inside ↵Sasi Inguva2016-09-29
| | | | | | | | | | | | | | | | | | an edit list. Fixes gapless decoding. Adjust skip_samples field correctly in case of DISCARDed audio frames. Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg: switch to the new BSF APIClément Bœsch2016-09-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is initially largely based on commit 4426540 from Anton Khirnov <anton@khirnov.net> and two following fixes (80fb19b and fe7b21c) which were previously skipped respectively in 98e3153, c9ee36e, and 7fe7cdc. mpeg4-bsf-unpack-bframes FATE reference is updated because the bsf filter now actually fixes the extradata (mpeg4_unpack_bframes_init() changing one byte is now honored on the output extradata). The FATE references for remove_extra change because the packet flags were wrong and the keyframes weren't marked, causing the bsf relying on these proprieties to not actually work as intended. The following was fixed by James Almer: The filter option arguments are now also parsed correctly. A hack to propagate extradata changed by bitstream filters after the first av_bsf_receive_packet() call is added to maintain the current behavior. This was previously done by av_bitstream_filter_filter() and is needed for the aac_adtstoasc bsf. The exit_on_error was not being checked anymore, and led to an exit error in the last frame of h264_mp4toannexb test. Restoring this behaviour prevents erroring out. The test is still changed as a result due to the badly filtered frame now not being written after the failure. Signed-off-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* | ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.Sasi Inguva2016-09-23
| | | | | | | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: add Test for h264_mp4toannexb (ticket2991)Michael Niedermayer2016-09-23
| |
* | avcodec/remove_extradata_bsf: Fix AVoption parameter max valueJames Almer2016-09-23
| |
* | tests/fate/ffmpeg: Remove dead automatic remove extradata test update the ↵Michael Niedermayer2016-09-23
| | | | | | | | | | | | | | keyframe test Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/fate: Add fate-ffmpeg-bsf-remove-* testsMichael Niedermayer2016-09-23
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: update fate-source reference fileJames Almer2016-09-22
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | ffmpeg: switch to codecparClément Bœsch2016-09-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit is largely based on commit 15e84ed3 from Anton Khirnov <anton@khirnov.net> which was previously skipped in bbf5ef9d. There are still a bunch of things raising codecpar related warnings that need fixing, such as: - the use of codec->debug in the interactive debug mode - read_ffserver_streams(): it's probably broken now but there is no test - lowres stuff - codec copy apparently required by bitstream filters The matroska references are updated because they now properly forward the field_order (previously unknown, now progressive). Thanks to James Almer for fixing a bunch of FATE issues in this commit. Signed-off-by: Clément Bœsch <clement@stupeflix.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | test/fate: add multi component mxf testMark Reid2016-09-21
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: add aac_adtstoasc test (Ticket 3715)Michael Niedermayer2016-09-20
| |
* | fate: Add rgb24-mkv testMichael Niedermayer2016-09-20
| |
* | lavf/mov: Add support for edit list parsing.Sasi Inguva2016-09-19
| | | | | | | | | | Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate: Add copy-trac2211-avi testMichael Niedermayer2016-09-10
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/fate-run.sh: Analyze file generated in transcode()Michael Niedermayer2016-09-10
| | | | | | | | | | | | This should be much more informative than a plain md5 difference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tests/fate/ffmpeg: regroup stream copy tests under a fate-streamcopy ruleClément Bœsch2016-09-09
| |
* | fate: add hstack and vstackPaul B Mahol2016-09-09
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | fate: add weavePaul B Mahol2016-09-09
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | fate: add swaprectPaul B Mahol2016-09-09
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | fate: add shuffleframes testPaul B Mahol2016-09-08
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | tests/fate:Add FATE for hls_flags append optionSteven Liu2016-09-07
| | | | | | | | | | | | | | | | | | add tests/ref/fate/filter-hls-append for FATE add hls-list-append fate use filter make audio data and test hls_flags append options Signed-off-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | af_hdcd: tweak hdcd_analyze_prepare() a bitBurt P2016-09-07
| | | | | | | | | | | | | | | | * use the actual sample rate * use a more sensible frequency for the tone * update fate test result Signed-off-by: Burt P <pburt0@gmail.com>
* | avformat: Export ticks_per_frame in st->codecMichael Niedermayer2016-09-07
| | | | | | | | | | | | | | | | | | | | Fixes regressions with stream copy and output timebase/fps being twice as fine as needed Makes the timebase and ticks per frame handled identical which should make the code easier to understand and work with. It does not solve the problem without st->codec access Suggested-by: Hendrik Leppkes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>