summaryrefslogtreecommitdiff
path: root/tests/api
Commit message (Collapse)AuthorAge
* Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt2021-09-20
| | | | | | | They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-22
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/codec, allcodecs: Constify the AVCodec APIAndreas Rheinhardt2021-04-27
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avutil: Switch crypto APIs to size_tAndreas Rheinhardt2021-04-27
| | | | | | | Announced in e435beb1ea5380a90774dbf51fdc8c941e486551. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api/api-flac-test: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api-flac-test: reindentAnton Khirnov2021-03-08
|
* tests/api-flac-test: convert to new encoding/decoding APIAnton Khirnov2021-03-08
|
* tests/api-flac-test: ensure the frame is writable before writing to itAnton Khirnov2021-03-08
| | | | | The encoder may keep a reference to frames that were sent to it, so the caller cannot modify them without checking first.
* tests/api-band-test: simplify codeAnton Khirnov2021-02-25
|
* api-seek-test: use non-obsolete decoding APIAnton Khirnov2021-01-01
|
* api-band-test: use non-obsolete decoding APIAnton Khirnov2021-01-01
|
* api-h264-test: use non-obsolete decoding APIAnton Khirnov2021-01-01
|
* tests: drop api-codec-param testAnton Khirnov2020-12-10
| | | | It fundamentally depends on deprecated lavf internals.
* Remove unnecessary use of avcodec_close().Anton Khirnov2020-06-10
| | | | | Replace it with avcodec_free_context() or drop it completely as appropriate.
* Stop hardcoding align=32 in av_frame_get_buffer() calls.Anton Khirnov2020-05-22
| | | | Use 0, which selects the alignment automatically.
* tests/api/api-h264-slice-test: remove unused bool headerLinjie Fu2020-04-29
| | | | | Signed-off-by: Linjie Fu <linjie.fu@intel.com> Signed-off-by: Josh de Kock <josh@itanimul.li>
* tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/ptsJun Zhao2019-02-12
| | | | | | | | | 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>
* api-h264-slice-test: fix arguments and helpRafaël Carré2019-01-14
| | | | | | | This program only takes 2 arguments Remove comment that was never right Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/api-flac-test: Rename NUMBER_OF_FRAMES as NUMBER_OF_AUDIO_FRAMES.Carl Eugen Hoyos2018-12-11
| | | | | In system header /usr/include/sys/mstsave.h, aix defines NUMBER_OF_FRAMES, causing redefinition warnings.
* fate-api-h264-slice: use the heap for nal bufferPeter Ross2018-11-21
| | | | | | nal buffer is 512 kilobytes Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* api-h264-slice-test: use av_be2ne16 instead of ntohsPeter Ross2018-11-21
| | | | | | avformat/network.h is not required here. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/api-h264-slice-test: use cleaner error handlingJosh de Kock2018-11-03
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/api-h264-slice-test: don't use ssize_tJosh de Kock2018-11-03
| | | | | | Fixes ticket #7521 Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api-h264-slice-test: use the correct function to free the AVHashContextJames Almer2018-10-27
| | | | | | Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add api-h264-slice testJosh de Kock2018-10-26
| | | | This test ensures that you are able to send N number of slice NALUs in slice threaded mode to be decoded simultaneously
* lavu/threadmessage: add av_thread_message_queue_nb_elems()Clément Bœsch2018-04-26
|
* 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>
* tests: do not use AVFrame accessorMuhammad Faiz2017-04-23
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* Merge commit '3794062ab1a13442b06f6d76c54dce51ffa54697'Clément Bœsch2017-04-09
| | | | | | | * commit '3794062ab1a13442b06f6d76c54dce51ffa54697': Remove Plan 9 support Merged-by: Clément Bœsch <u@pkh.me>
* tests/api-seek: fix memory leak on realloc() failureJames Almer2017-03-12
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* test/api-seek: clean up properly on failureJames Almer2017-03-12
| | | | | | | Also propagate better error values. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api-seek: make the crc array uint32_tJames Almer2017-03-12
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api/api-seek-test: check all compute_crc_of_packets() callsMichael Niedermayer2016-12-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/api/api-seek-test: Silence compiler warnings about uninitialized variablesMichael Niedermayer2016-12-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/api/api-seek-test: Fix use of uinitialized valueMichael Niedermayer2016-12-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* 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/api: add .gitignoreClément Bœsch2016-06-23
| | | | Fixes regression since 5d48e4eafa6c4559683892b8638d10508125f3cf
* tests/api/api-codec-param-test: Do not directly access caps_internalMichael Niedermayer2016-06-20
| | | | | | | 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>
* Merge commit '9200514ad8717c63f82101dc394f4378854325bf'Derek Buitenhuis2016-04-10
| | | | | | | | | | | | | | | | * 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>
* fate/api-codec-param: fix codec context leakMatthieu Bouron2015-12-08
|
* fate/api: add w32+os2 support for fate-api-threadmessageClément Bœsch2015-12-07
|
* fate/api: test threadmessageClément Bœsch2015-12-07
|
* tests/api: Fix API test build on windows with --enable-sharedHendrik Leppkes2015-12-03
|
* fate: add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM testsMatthieu Bouron2015-11-26
|
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-27
|
* fate: add api-band-testLudmila Glinskih2015-08-24
| | | | | | | 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>
* api-seek-test: first versionLudmila Glinskih2015-08-20
| | | | | | | | 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>
* tests/api/api-h264-test: structure changes to avoid duplicate codeLudmila Glinskih2015-08-08
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* api-h264-test: build with another api testLudmila Glinskih2015-06-29
| | | | | | Location of api-h264-test changed to special directory for api tests. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate/api-tests: Added dependency on $(FF_DEP_LIBS)George Boyle2015-06-29
| | | | | | This ensures they are built before the tests are run. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>