Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2018-07-08avcodec/mpeg2dec: Fix field selection for skipped macroblocksNekopanda
For B field pictures, the spec says, > The prediction shall be made from the field of the same parity as the field being predicted. I did it. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 8b154cb3e90a3e599cadf477d815a9854b7bb4e1) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-01-09tests/audiomatch: Add missing return code at the end of main()Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 65da5c56e661a839e017db4c51c73d6f3d8a8fcb) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-14avcodec/vp56: Implement very basic error concealmentMichael Niedermayer
This should fix the fate failure due to a truncated last frame. Alternatively the frame could be dropped. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d34bf886e963445350c4987f7a9ed77bd9c9a5c7) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-14avcodec/vp56: Fix sign typoMichael Niedermayer
Fixes: 664/clusterfuzz-testcase-4917047475568640 The change to fate is due to a truncated last frames which is now detected as damaged. Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 513a3494396d0a20233273b3cadcb5ee86485d5c) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-03-24avcodec/dnxhd_parser: take into account compressed frame size and skip itPaul B Mahol
Fixes #6214 and vsynth1-dnxhd-720p-hr-lb. Signed-off-by: Paul B Mahol <onemda@gmail.com> (cherry picked from commit e1940d2458353943e2fab6bdb87d2278077e22a5)
2016-11-18avformat/apngenc: use the stream parameters extradata if availableJames Almer
Fixes remuxing apng streams coming from the apng demuxer, which sends extradata during init. Signed-off-by: James Almer <jamrial@gmail.com>
2016-11-18Revert "apngdec: use side data to pass extradata to the decoder"James Almer
This reverts commit e0c6b32046f4bab7d34be77dd2f03b2a80c86d39. Said commit changed the behavior of the demuxer and decoder in a non backwards compatible way. Demuxers should make extradata available at init if possible, and send new extradata as side data within a packet if needed. A better fix for the remuxing crash will follow. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit 16c429166ddf1736972b6ccce84bd3509ec16a34)
2016-11-18fate: add streamcopy test for apngAndreas Cadhalpun
Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 719c15aa9ad6983200b78e5dbc17443f649c8af9) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-11-18fate: add apng encoding/muxing testAndreas Cadhalpun
Also test the fallback to png creation for a single frame. Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> (cherry picked from commit 97792e85c338d129342f5812e2a52048373e57d6) Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
2016-10-26avformat/matroskaenc: fix cue relative position values when CRC32 is enabledJames Almer
The dynamic buffer does not contain the CRC32 element so calls to avio_tell() don't take it into account. This resulted in CueRelativePosition values being six bytes short. This is a regression since 6724525a1576ca334d2ffdc085620bb44aea7394 Instead of adding yet another custom check for CRC32 to fix a size or an offset, remove the existing ones and reserve the six bytes in the dynamic buffer. Signed-off-by: James Almer <jamrial@gmail.com> (cherry picked from commit eabbc64728c2fdb74f565aededec2ab023d20699)
2016-10-26lavf/flvdec: init AVPacket::pos to FLVTAG offsetSuman-
Current code doesn't initialize AVPacket::pos. Made it point to FLVTAG so flv_read_packet can decode from pos Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-26fate: Add MXF D10/DNXHD/DV25 probe testsTobias Rapp
Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-24lavf: add AV_DISPOSITION_TIMED_THUMBNAILSRodger Combs
Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
2016-10-24fate/hevc: add automatic bsf testRodger Combs
2016-10-24fate/aac: add automatic bsf testRodger Combs
2016-10-24fate/h264: make mp4toannexb test use auto-BSFRodger Combs
2016-10-24ffprobe: report field order for video streamsRodger Combs
2016-10-22avformat/matroskaenc: write DisplayWidth and DisplayHeight elements only if ↵James Almer
they differ from PixelWidth and PixelHeight Signed-off-by: James Almer <jamrial@gmail.com>
2016-10-21tests/fate: add mxf metadata streams testMark Reid
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-19FATE: Add test for muxing discontinuous MP4 fragments with large timestampsDerek Buitenhuis
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-10-18fate: add swr-convertaudio testMuhammad Faiz
test for flt to s16 should pass on correct rounding to nearest Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-10-16avformat/matroskaenc: write a DisplayUnit element when aspect ratio is unknownJames Almer
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>
2016-10-15avutil: Improved selftest coverage for libavutil/fifo.cThomas Turner
Tested functions: av_fifo_generic_peek(), av_fifo_grow() Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-13fate: add test for firequalizer filterMuhammad Faiz
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2016-10-12avformat/matroskaenc: don't write a FlagInterlaced element if it would write ↵James Almer
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>
2016-10-11avformat/matroskaenc: fix targets for attachment tagsJames Almer
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>
2016-10-10avformat/movenc: Switch mov_write_uuidprof_tag() to avg_frame_rateMichael Niedermayer
Using the stream timebase simply overflows Fix integer overflow in psp framerate computation Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-07Merge commit 'dc7501e524dc3270335749302c7aa449973625f3'Hendrik Leppkes
* commit 'dc7501e524dc3270335749302c7aa449973625f3': checkasm: Issue emms after benchmarking functions Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-10-07Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'Hendrik Leppkes
* commit 'beb62dac629603eb074a44c44389c230b5caac7c': Use AVFrame.pts instead of deprecated pkt_pts. Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-10-07tests: add -nostdin flag when calling ffmpegRodger Combs
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.
2016-10-06avformat/matroskaenc: write a CRC32 element on InfoJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on TagsJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on AttachmentsJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on TracksJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on CuesJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on SeekHeadJames Almer
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>
2016-10-06avformat/matroskaenc: write a CRC32 element on each ClusterJames Almer
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>
2016-10-05avformat/matroskaenc: don't reserve space for stream duration tags if the ↵James Almer
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>
2016-10-03fate: add bitexact decode flag to fate-svq3-watermarkJames Almer
Fixes failure with mmxext or 3dnow cpuflags enabled but ssse3 disabled Signed-off-by: James Almer <jamrial@gmail.com>
2016-10-03fate: Add PSP copy testMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-01ffmpeg: use new decode APIwm4
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.
2016-10-01fate: Add regression test for Ticket 186Michael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-10-01fate: Add fate-svq3-watermarkMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-29lavf/mov: Read display aspect ratio from ares atom also for dnxhd.Carl Eugen Hoyos
Fixes aspect ratio of sample in ticket #2125. Fixes aspect ratio of sample in ticket #5325.
2016-09-29lavf/mov.c: Make audio timestamps strictly monotonically increasing inside ↵Sasi Inguva
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>
2016-09-24ffmpeg: switch to the new BSF APIClément Bœsch
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>
2016-09-24ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.Sasi Inguva
Signed-off-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-09-23fate: add Test for h264_mp4toannexb (ticket2991)Michael Niedermayer
2016-09-23avcodec/remove_extradata_bsf: Fix AVoption parameter max valueJames Almer
2016-09-23tests/fate/ffmpeg: Remove dead automatic remove extradata test update the ↵Michael Niedermayer
keyframe test Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>