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/api
AgeCommit message (Collapse)Author
2022-07-19tests/api: use AVFrame.duration instead of AVFrame.pkt_durationAnton Khirnov
2022-03-15tests: convert to new channel layout-APIJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-09-20Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt
They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-07-22avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt
Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-04-27avcodec/codec, allcodecs: Constify the AVCodec APIAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-04-27avutil: Switch crypto APIs to size_tAndreas Rheinhardt
Announced in e435beb1ea5380a90774dbf51fdc8c941e486551. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17tests/api/api-flac-test: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-08tests/api-flac-test: reindentAnton Khirnov
2021-03-08tests/api-flac-test: convert to new encoding/decoding APIAnton Khirnov
2021-03-08tests/api-flac-test: ensure the frame is writable before writing to itAnton Khirnov
The encoder may keep a reference to frames that were sent to it, so the caller cannot modify them without checking first.
2021-02-25tests/api-band-test: simplify codeAnton Khirnov
2021-01-01api-seek-test: use non-obsolete decoding APIAnton Khirnov
2021-01-01api-band-test: use non-obsolete decoding APIAnton Khirnov
2021-01-01api-h264-test: use non-obsolete decoding APIAnton Khirnov
2020-12-10tests: drop api-codec-param testAnton Khirnov
It fundamentally depends on deprecated lavf internals.
2020-06-10Remove unnecessary use of avcodec_close().Anton Khirnov
Replace it with avcodec_free_context() or drop it completely as appropriate.
2020-05-22Stop hardcoding align=32 in av_frame_get_buffer() calls.Anton Khirnov
Use 0, which selects the alignment automatically.
2020-04-29tests/api/api-h264-slice-test: remove unused bool headerLinjie Fu
Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Josh de Kock <josh@itanimul.li>
2019-02-12tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/ptsJun Zhao
Use av_ts2str() for AVFrame.pkt_dts/pts to avoid print the pkt_dts/pts as negative number like: "0, 3616613, -9223372036854775808, 1001, 3110400, 0x75e37a65" Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2019-01-14api-h264-slice-test: fix arguments and helpRafaël Carré
This program only takes 2 arguments Remove comment that was never right Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-12-11tests/api-flac-test: Rename NUMBER_OF_FRAMES as NUMBER_OF_AUDIO_FRAMES.Carl Eugen Hoyos
In system header /usr/include/sys/mstsave.h, aix defines NUMBER_OF_FRAMES, causing redefinition warnings.
2018-11-21fate-api-h264-slice: use the heap for nal bufferPeter Ross
nal buffer is 512 kilobytes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-21api-h264-slice-test: use av_be2ne16 instead of ntohsPeter Ross
avformat/network.h is not required here. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-11-03fate/api-h264-slice-test: use cleaner error handlingJosh de Kock
Signed-off-by: James Almer <jamrial@gmail.com>
2018-11-03fate/api-h264-slice-test: don't use ssize_tJosh de Kock
Fixes ticket #7521 Signed-off-by: James Almer <jamrial@gmail.com>
2018-10-27tests/api-h264-slice-test: use the correct function to free the AVHashContextJames Almer
Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
2018-10-26fate: add api-h264-slice testJosh de Kock
This test ensures that you are able to send N number of slice NALUs in slice threaded mode to be decoded simultaneously
2018-04-26lavu/threadmessage: add av_thread_message_queue_nb_elems()Clément Bœsch
2018-04-02lav*,tests: remove several register_all callsJosh de Kock
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>
2017-04-23tests: do not use AVFrame accessorMuhammad Faiz
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-04-09Merge commit '3794062ab1a13442b06f6d76c54dce51ffa54697'Clément Bœsch
* commit '3794062ab1a13442b06f6d76c54dce51ffa54697': Remove Plan 9 support Merged-by: Clément Bœsch <u@pkh.me>
2017-03-12tests/api-seek: fix memory leak on realloc() failureJames Almer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-12test/api-seek: clean up properly on failureJames Almer
Also propagate better error values. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-12tests/api-seek: make the crc array uint32_tJames Almer
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
2016-12-06tests/api/api-seek-test: check all compute_crc_of_packets() callsMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-06tests/api/api-seek-test: Silence compiler warnings about uninitialized variablesMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-12-06tests/api/api-seek-test: Fix use of uinitialized valueMichael Niedermayer
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
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-06-23tests/api: add .gitignoreClément Bœsch
Fixes regression since 5d48e4eafa6c4559683892b8638d10508125f3cf
2016-06-20tests/api/api-codec-param-test: Do not directly access caps_internalMichael Niedermayer
The caps_internal field has moved without major bump and direct access causes crashes, found when testing 3.1 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2016-04-10Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis
* commit '9200514ad8717c63f82101dc394f4378854325bf': lavf: replace AVStream.codec with AVStream.codecpar This has been a HUGE effort from: - Derek Buitenhuis <derek.buitenhuis@gmail.com> - Hendrik Leppkes <h.leppkes@gmail.com> - wm4 <nfxjfg@googlemail.com> - Clément Bœsch <clement@stupeflix.com> - James Almer <jamrial@gmail.com> - Michael Niedermayer <michael@niedermayer.cc> - Rostislav Pehlivanov <atomnuker@gmail.com> Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2015-12-08fate/api-codec-param: fix codec context leakMatthieu Bouron
2015-12-07fate/api: add w32+os2 support for fate-api-threadmessageClément Bœsch
2015-12-07fate/api: test threadmessageClément Bœsch
2015-12-03tests/api: Fix API test build on windows with --enable-sharedHendrik Leppkes
2015-11-26fate: add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM testsMatthieu Bouron
2015-10-27Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes
2015-08-24fate: add api-band-testLudmila Glinskih
Works only for flv, h263 and huffyuv decoders. Makes only one pass through the file (this should be changed to two passes) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-20api-seek-test: first versionLudmila Glinskih
Works only with video stream. First pass without seeking -- counts crcs of a frames and store it in an array. After that it seeks a lot in different places and checks if crcs of these frames and crcs of frames in array are the same. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-08-08tests/api/api-h264-test: structure changes to avoid duplicate codeLudmila Glinskih
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>