summaryrefslogtreecommitdiff
path: root/libavformat/tests
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2016-11-23 23:27:26 +0200
committerMartin Storsjö <martin@martin.st>2016-11-24 13:59:17 +0200
commit537b5b773b317af79d3a5b576ee9683e15ed84f6 (patch)
tree1f5d8f7752f6af03ab37478f7e5fc60fccc71e34 /libavformat/tests
parent2f99117f6ff24ce5be2abb9e014cb8b86c2aa0e0 (diff)
downloadffmpeg-537b5b773b317af79d3a5b576ee9683e15ed84f6.tar.gz
rtmpdh: Do global initialization before running the test
The rtmpdh code can use crypto libraries which may require a process global init. (gcrypt is one of the libraries where the rtmpdh test code can fail if global init hasn't been done, depending on gcrypt version.) Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/tests')
-rw-r--r--libavformat/tests/rtmpdh.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/tests/rtmpdh.c b/libavformat/tests/rtmpdh.c
index c25ca91b7e..cf567fb39b 100644
--- a/libavformat/tests/rtmpdh.c
+++ b/libavformat/tests/rtmpdh.c
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include "libavformat/avformat.h"
#include "libavformat/rtmpdh.c"
#include <stdio.h>
@@ -150,6 +151,7 @@ fail:
int main(void)
{
+ avformat_network_init();
if (test_random_shared_secret() < 0)
return 1;
if (test_ref_data() < 0)