media/libvpx/mingw.patch

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

michael@0 1 diff --git a/media/libvpx/vpx/src/svc_encodeframe.c b/media/libvpx/vpx/src/svc_encodeframe.c
michael@0 2 index 57d21dc..2514ad3 100644
michael@0 3 --- a/media/libvpx/vpx/src/svc_encodeframe.c
michael@0 4 +++ b/media/libvpx/vpx/src/svc_encodeframe.c
michael@0 5 @@ -18,21 +18,23 @@
michael@0 6 #include <stdlib.h>
michael@0 7 #include <string.h>
michael@0 8 #define VPX_DISABLE_CTRL_TYPECHECKS 1
michael@0 9 #define VPX_CODEC_DISABLE_COMPAT 1
michael@0 10 #include "vpx/svc_context.h"
michael@0 11 #include "vpx/vp8cx.h"
michael@0 12 #include "vpx/vpx_encoder.h"
michael@0 13
michael@0 14 -#if defined(__MINGW32__) && !defined(MINGW_HAS_SECURE_API)
michael@0 15 +#ifdef __MINGW32__
michael@0 16 #define strtok_r strtok_s
michael@0 17 +#ifndef MINGW_HAS_SECURE_API
michael@0 18 // proto from /usr/x86_64-w64-mingw32/include/sec_api/string_s.h
michael@0 19 _CRTIMP char *__cdecl strtok_s(char *str, const char *delim, char **context);
michael@0 20 -#endif
michael@0 21 +#endif /* MINGW_HAS_SECURE_API */
michael@0 22 +#endif /* __MINGW32__ */
michael@0 23
michael@0 24 #ifdef _MSC_VER
michael@0 25 #define strdup _strdup
michael@0 26 #define strtok_r strtok_s
michael@0 27 #endif
michael@0 28
michael@0 29 #define SVC_REFERENCE_FRAMES 8
michael@0 30 #define SUPERFRAME_SLOTS (8)

mercurial