Jun Zhao
36f5ae7a75
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 >
2019-02-12 22:28:15 +08:00
Rafaël Carré
9759970df6
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 >
2019-01-14 17:16:55 +01:00
Carl Eugen Hoyos
c3a4ac2450
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.
2018-12-11 19:14:02 +01:00
Peter Ross
756432776a
fate-api-h264-slice: use the heap for nal buffer
...
nal buffer is 512 kilobytes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2018-11-21 00:33:38 +01:00
Peter Ross
5a19ab6fba
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 >
2018-11-21 00:33:38 +01:00
Josh de Kock
91ee4bee7f
fate/api-h264-slice-test: use cleaner error handling
...
Signed-off-by: James Almer <jamrial@gmail.com >
2018-11-03 12:49:00 -03:00
Josh de Kock
7a028f760d
fate/api-h264-slice-test: don't use ssize_t
...
Fixes ticket #7521
Signed-off-by: James Almer <jamrial@gmail.com >
2018-11-03 12:46:45 -03:00
James Almer
83a6928089
tests/api-h264-slice-test: use the correct function to free the AVHashContext
...
Fixes memleaks.
Signed-off-by: James Almer <jamrial@gmail.com >
2018-10-27 00:12:30 -03:00
Josh de Kock
ff4b0278c7
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
2018-10-26 11:51:04 +01:00
Clément Bœsch
b95c7e906f
lavu/threadmessage: add av_thread_message_queue_nb_elems()
2018-04-26 19:41:19 +02:00
Josh de Kock
98ebe042e6
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 >
2018-04-02 03:26:22 +01:00
Muhammad Faiz
60e204bfbc
tests: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com >
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com >
2017-04-23 14:47:54 +07:00
Clément Bœsch
ebfd4176cd
Merge commit '98aa83819b960e10edd6d3f7cdbdbfc18735db5c'
...
* commit '98aa83819b960e10edd6d3f7cdbdbfc18735db5c':
Remove Plan 9 support
Merged-by: Clément Bœsch <u@pkh.me >
2017-04-09 14:52:00 +02:00
James Almer
d00eef6e86
tests/api-seek: fix memory leak on realloc() failure
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-03-12 14:29:11 -03:00
James Almer
c3e0ac8454
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 >
2017-03-12 14:29:11 -03:00
James Almer
4d24a76c12
tests/api-seek: make the crc array uint32_t
...
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc >
Signed-off-by: James Almer <jamrial@gmail.com >
2017-03-12 14:29:10 -03:00
Michael Niedermayer
9bbf71edd6
tests/api/api-seek-test: check all compute_crc_of_packets() calls
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:42:07 +01:00
Michael Niedermayer
7634d87c98
tests/api/api-seek-test: Silence compiler warnings about uninitialized variables
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:41:32 +01:00
Michael Niedermayer
a790709fa4
tests/api/api-seek-test: Fix use of uinitialized value
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2016-12-06 15:41:31 +01:00
Hendrik Leppkes
41b7b7a0a2
Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'
...
* commit 'beb62dac629603eb074a44c44389c230b5caac7c':
Use AVFrame.pts instead of deprecated pkt_pts.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com >
2016-10-07 13:16:36 +02:00
Clément Bœsch
7057c8256e
tests/api: add .gitignore
...
Fixes regression since cb14aac6b3
2016-06-23 17:57:22 +02:00
Michael Niedermayer
821f1f0057
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 >
2016-06-20 00:08:45 +02:00
Derek Buitenhuis
6f69f7a8bf
Merge commit '9200514ad8717c63f82101dc394f4378854325bf'
...
* 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 >
2016-04-10 20:59:55 +01:00
Matthieu Bouron
bd0a9f603d
fate/api-codec-param: fix codec context leak
2015-12-08 08:12:35 +01:00
Clément Bœsch
dc97ff8380
fate/api: add w32+os2 support for fate-api-threadmessage
2015-12-07 14:57:33 +01:00
Clément Bœsch
a26e4215b9
fate/api: test threadmessage
2015-12-07 11:39:28 +01:00
Hendrik Leppkes
46db068c59
tests/api: Fix API test build on windows with --enable-shared
2015-12-03 10:21:28 +01:00
Matthieu Bouron
39290f2715
fate: add FF_CODEC_CAP_SKIP_FRAME_FILL_PARAM tests
2015-11-26 17:05:54 +01:00
Hendrik Leppkes
c2f861ca42
Replace remaining occurances of av_free_packet with av_packet_unref
2015-10-27 14:35:30 +01:00
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 >
2015-08-24 03:54:55 +02:00
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 >
2015-08-20 21:40:11 +02:00
Ludmila Glinskih
8ec89681af
tests/api/api-h264-test: structure changes to avoid duplicate code
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc >
2015-08-08 09:53:00 +02:00
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 >
2015-06-29 02:49:32 +02:00
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 >
2015-06-29 01:01:44 +02:00
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 >
2015-06-28 01:05:59 +02:00
George Boyle
7728d231a6
fate/api-tests: Move api-flac-test to API tests directory.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 03:43:23 +02:00
George Boyle
3f18cb97e5
fate/api-tests: Add directory and Makefile for API tests
...
The intention of this change is to allow separation of API tests from the
existing tests, and also to have a place for the API test source/executable
files so they're not mixed in with the actual library code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at >
2015-06-27 03:42:47 +02:00