[FFmpeg-cvslog] rtmpdh: Do global initialization before running the test
Martin Storsjö
git at videolan.org
Tue Apr 4 21:57:04 EEST 2017
ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Nov 23 23:27:26 2016 +0200| [537b5b773b317af79d3a5b576ee9683e15ed84f6] | committer: Martin Storsjö
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 at martin.st>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=537b5b773b317af79d3a5b576ee9683e15ed84f6
---
libavformat/tests/rtmpdh.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/tests/rtmpdh.c b/libavformat/tests/rtmpdh.c
index c25ca91..cf567fb 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)
More information about the ffmpeg-cvslog
mailing list