aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api
Commit message (Collapse)AuthorAgeFilesLines
* tests/api/api-dump-stream-meta-test: Fix leaksAndreas Rheinhardt2025-05-051-0/+3
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* tests: Add stream dump test API util, use it to dump stream data for chained ↵Romain Beauxis2025-04-302-1/+183
| | | | | | ogg/{vorbis, opus, flac} streams. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* api/api-band-test: Query codec capabilities to decide admissibilityAndreas Rheinhardt2024-06-121-3/+3
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* api/api-band-test: Perform codec admissibility check earlierAndreas Rheinhardt2024-06-121-5/+5
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* api/api-band-test: Remove write-only variableAndreas Rheinhardt2024-06-121-2/+0
| | | | | | | | Besides being write only it had the wrong type: An uint8_t is definitely not enough to store the size of these buffers. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-316-0/+6
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* tests/api: use AVFrame.duration instead of AVFrame.pkt_durationAnton Khirnov2022-07-192-2/+2
|
* tests: convert to new channel layout-APIJames Almer2022-03-151-15/+18
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt2021-09-201-2/+2
| | | | | | | 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-221-0/+1
| | | | | | 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-274-8/+8
| | | | | 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-271-1/+1
| | | | | | | 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-171-8/+11
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* tests/api-flac-test: reindentAnton Khirnov2021-03-081-21/+21
|
* tests/api-flac-test: convert to new encoding/decoding APIAnton Khirnov2021-03-081-14/+26
|
* tests/api-flac-test: ensure the frame is writable before writing to itAnton Khirnov2021-03-081-0/+4
| | | | | 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-251-4/+2
|
* api-seek-test: use non-obsolete decoding APIAnton Khirnov2021-01-011-42/+62
|
* api-band-test: use non-obsolete decoding APIAnton Khirnov2021-01-011-37/+53
|
* api-h264-test: use non-obsolete decoding APIAnton Khirnov2021-01-011-32/+53
|
* tests: drop api-codec-param testAnton Khirnov2020-12-102-257/+0
| | | | It fundamentally depends on deprecated lavf internals.
* Remove unnecessary use of avcodec_close().Anton Khirnov2020-06-104-19/+2
| | | | | 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-222-2/+2
| | | | Use 0, which selects the alignment automatically.
* tests/api/api-h264-slice-test: remove unused bool headerLinjie Fu2020-04-291-1/+0
| | | | | 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-121-3/+4
| | | | | | | | | 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-141-4/+2
| | | | | | | 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-111-5/+5
| | | | | 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-211-2/+9
| | | | | | 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-211-2/+2
| | | | | | 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-031-32/+47
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* fate/api-h264-slice-test: don't use ssize_tJosh de Kock2018-11-031-6/+3
| | | | | | 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-271-1/+1
| | | | | | Fixes memleaks. Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add api-h264-slice testJosh de Kock2018-10-262-0/+222
| | | | 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-261-1/+3
|
* lav*,tests: remove several register_all callsJosh de Kock2018-04-025-10/+0
| | | | | | | 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-234-6/+6
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* Merge commit '3794062ab1a13442b06f6d76c54dce51ffa54697'Clément Bœsch2017-04-091-1/+1
| | | | | | | * 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-121-2/+2
| | | | | 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-121-12/+19
| | | | | | | 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-121-8/+9
| | | | | 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-061-4/+5
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/api/api-seek-test: Silence compiler warnings about uninitialized variablesMichael Niedermayer2016-12-061-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tests/api/api-seek-test: Fix use of uinitialized valueMichael Niedermayer2016-12-061-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'Hendrik Leppkes2016-10-072-6/+6
| | | | | | | * 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-231-0/+1
| | | | Fixes regression since 5d48e4eafa6c4559683892b8638d10508125f3cf
* tests/api/api-codec-param-test: Do not directly access caps_internalMichael Niedermayer2016-06-201-1/+1
| | | | | | | 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-103-12/+15
| | | | | | | | | | | | | | | | * 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-081-0/+6
|
* fate/api: add w32+os2 support for fate-api-threadmessageClément Bœsch2015-12-072-3/+2
|
* fate/api: test threadmessageClément Bœsch2015-12-072-0/+262
|