Merge commit '537b5b773b317af79d3a5b576ee9683e15ed84f6'

* commit '537b5b773b317af79d3a5b576ee9683e15ed84f6':
  rtmpdh: Do global initialization before running the test

Merged-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2017-04-04 15:56:36 -03:00
commit 30518a68a7
1 changed files with 2 additions and 0 deletions

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)