aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-flac-test.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: convert to new channel layout-APIJames Almer2022-03-151-15/+18
| | | | Signed-off-by: James Almer <jamrial@gmail.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-271-5/+5
| | | | | 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.
* Remove unnecessary use of avcodec_close().Anton Khirnov2020-06-101-16/+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-221-1/+1
| | | | Use 0, which selects the alignment automatically.
* 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.
* lav*,tests: remove several register_all callsJosh de Kock2018-04-021-2/+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-231-2/+2
| | | | | Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* Replace remaining occurances of av_free_packet with av_packet_unrefHendrik Leppkes2015-10-271-1/+1
|
* api-flac-test: Fix the bug of comparing zero bytesLudmila Glinskih2015-06-281-6/+16
| | | | | | Add check for linesize. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* fate/api-tests: Move api-flac-test to API tests directory.George Boyle2015-06-271-0/+266
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>