Anton Khirnov
9c0401bd59
tests/api: use AVFrame.duration instead of AVFrame.pkt_duration
2 years ago
James Almer
7d532f474d
tests: convert to new channel layout-API
...
Signed-off-by: James Almer <jamrial@gmail.com>
3 years ago
Andreas Rheinhardt
1ea3650823
Replace all occurences of av_mallocz_array() by av_calloc()
...
They do the same.
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
1be3d8a0cb
avcodec/avcodec: Stop including channel_layout.h in avcodec.h
...
Also include channel_layout.h directly wherever used.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
3 years ago
Andreas Rheinhardt
626535f6a1
avcodec/codec, allcodecs: Constify the AVCodec API
...
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Andreas Rheinhardt
a240097ecd
avutil: Switch crypto APIs to size_t
...
Announced in e435beb1ea
.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
James Almer
7643a35474
tests/api/api-flac-test: use av_packet_alloc() to allocate packets
...
Signed-off-by: James Almer <jamrial@gmail.com>
4 years ago
Anton Khirnov
8369a2873c
tests/api-flac-test: reindent
4 years ago
Anton Khirnov
f942e14884
tests/api-flac-test: convert to new encoding/decoding API
4 years ago
Anton Khirnov
ba30fd6c81
tests/api-flac-test: ensure the frame is writable before writing to it
...
The encoder may keep a reference to frames that were sent to it, so the
caller cannot modify them without checking first.
4 years ago
Anton Khirnov
a5b737e625
tests/api-band-test: simplify code
4 years ago
Anton Khirnov
bb2651a921
api-seek-test: use non-obsolete decoding API
4 years ago
Anton Khirnov
88e098029d
api-band-test: use non-obsolete decoding API
4 years ago
Anton Khirnov
94988f9107
api-h264-test: use non-obsolete decoding API
4 years ago
Anton Khirnov
fe7f0d366f
tests: drop api-codec-param test
...
It fundamentally depends on deprecated lavf internals.
4 years ago
Anton Khirnov
0d6b4351c6
Remove unnecessary use of avcodec_close().
...
Replace it with avcodec_free_context() or drop it completely as
appropriate.
5 years ago
Anton Khirnov
f30a41a608
Stop hardcoding align=32 in av_frame_get_buffer() calls.
...
Use 0, which selects the alignment automatically.
5 years ago
Linjie Fu
e3510fb178
tests/api/api-h264-slice-test: remove unused bool header
...
Signed-off-by: Linjie Fu <linjie.fu@intel.com>
Signed-off-by: Josh de Kock <josh@itanimul.li>
5 years ago
Jun Zhao
84e7aff608
tests/api/api-h264-test: Add AV_NOPTS_VALUE check for AVFrame.pkt_dts/pts
...
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>
6 years ago
Rafaël Carré
75ea329b78
api-h264-slice-test: fix arguments and help
...
This program only takes 2 arguments
Remove comment that was never right
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Carl Eugen Hoyos
464aa60eb5
tests/api-flac-test: Rename NUMBER_OF_FRAMES as NUMBER_OF_AUDIO_FRAMES.
...
In system header /usr/include/sys/mstsave.h, aix defines NUMBER_OF_FRAMES,
causing redefinition warnings.
6 years ago
Peter Ross
3fc7b69496
fate-api-h264-slice: use the heap for nal buffer
...
nal buffer is 512 kilobytes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Peter Ross
7cda7d217c
api-h264-slice-test: use av_be2ne16 instead of ntohs
...
avformat/network.h is not required here.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
6 years ago
Josh de Kock
1052578dad
fate/api-h264-slice-test: use cleaner error handling
...
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
Josh de Kock
8096f52049
fate/api-h264-slice-test: don't use ssize_t
...
Fixes ticket #7521
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
James Almer
59a35fe1f6
tests/api-h264-slice-test: use the correct function to free the AVHashContext
...
Fixes memleaks.
Signed-off-by: James Almer <jamrial@gmail.com>
6 years ago
Josh de Kock
fb7925ba2f
fate: add api-h264-slice test
...
This test ensures that you are able to send N number of slice NALUs in slice threaded mode to be decoded simultaneously
6 years ago
Clément Bœsch
71fa82bed6
lavu/threadmessage: add av_thread_message_queue_nb_elems()
7 years ago
Josh de Kock
89029bd2c7
lav*,tests: remove several register_all calls
...
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>
7 years ago
Muhammad Faiz
cdd3048134
tests: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
James Almer
ff17c76e92
tests/api-seek: fix memory leak on realloc() failure
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
bdd07d7796
test/api-seek: clean up properly on failure
...
Also propagate better error values.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
88deeb3eba
tests/api-seek: make the crc array uint32_t
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Michael Niedermayer
7679c38b3b
tests/api/api-seek-test: check all compute_crc_of_packets() calls
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
5952b8da0b
tests/api/api-seek-test: Silence compiler warnings about uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Michael Niedermayer
108db37586
tests/api/api-seek-test: Fix use of uinitialized value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
a86fe0d738
tests/api: add .gitignore
...
Fixes regression since 5d48e4eafa
9 years ago
Michael Niedermayer
dfbb5de172
tests/api/api-codec-param-test: Do not directly access caps_internal
...
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>
9 years ago
Matthieu Bouron
bd0a9f603d
fate/api-codec-param: fix codec context leak
9 years ago
Clément Bœsch
dc97ff8380
fate/api: add w32+os2 support for fate-api-threadmessage
9 years ago
Clément Bœsch
a26e4215b9
fate/api: test threadmessage
9 years ago
Hendrik Leppkes
46db068c59
tests/api: Fix API test build on windows with --enable-shared
9 years ago
Matthieu Bouron
39290f2715
fate: add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM tests
9 years ago
Hendrik Leppkes
c2f861ca42
Replace remaining occurances of av_free_packet with av_packet_unref
9 years ago
Ludmila Glinskih
4a9bc12fe7
fate: add api-band-test
...
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>
9 years ago
Ludmila Glinskih
e23a01c06d
api-seek-test: first version
...
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>
9 years ago
Ludmila Glinskih
8ec89681af
tests/api/api-h264-test: structure changes to avoid duplicate code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ludmila Glinskih
ca3b274552
api-h264-test: build with another api test
...
Location of api-h264-test changed to special directory for api tests.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
George Boyle
02bd4d93c9
fate/api-tests: Added dependency on $(FF_DEP_LIBS)
...
This ensures they are built before the tests are run.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Ludmila Glinskih
86fb203246
api-flac-test: Fix the bug of comparing zero bytes
...
Add check for linesize.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago