1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Martin Storsjö 2016-11-23 23:27:26 +02:00
parent 2f99117f6f
commit 537b5b773b

View File

@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include "libavformat/avformat.h"
#include "libavformat/rtmpdh.c" #include "libavformat/rtmpdh.c"
#include <stdio.h> #include <stdio.h>
@ -150,6 +151,7 @@ fail:
int main(void) int main(void)
{ {
avformat_network_init();
if (test_random_shared_secret() < 0) if (test_random_shared_secret() < 0)
return 1; return 1;
if (test_ref_data() < 0) if (test_ref_data() < 0)