diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-26 00:36:59 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-10-08 22:22:58 +0000 |
commit | 3e58f3cd4d8d1d6209f5d64419d37cc213f4d4c3 (patch) | |
tree | 60065469ca637300d40eeaad47ce855aea6f639d /toxav/video.c | |
parent | 17a7bf3fd25d5b862b02267843fa2d37ed387d43 (diff) |
Improve Windows compatibility of toxav code.
- unistd.h doesn't exist on MSVC.
- `vpx_codec_iface_t` is already `const`, so adding `const` qualifiers is
redundant and causes warnings on MSVC.
Diffstat (limited to 'toxav/video.c')
-rw-r--r-- | toxav/video.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxav/video.c b/toxav/video.c index ab47ae97..545d95b6 100644 --- a/toxav/video.c +++ b/toxav/video.c | |||
@@ -72,11 +72,11 @@ | |||
72 | #define VIDEO_BITRATE_INITIAL_VALUE 5000 | 72 | #define VIDEO_BITRATE_INITIAL_VALUE 5000 |
73 | #define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry | 73 | #define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry |
74 | 74 | ||
75 | static const vpx_codec_iface_t *video_codec_decoder_interface(void) | 75 | static vpx_codec_iface_t *video_codec_decoder_interface(void) |
76 | { | 76 | { |
77 | return vpx_codec_vp8_dx(); | 77 | return vpx_codec_vp8_dx(); |
78 | } | 78 | } |
79 | static const vpx_codec_iface_t *video_codec_encoder_interface(void) | 79 | static vpx_codec_iface_t *video_codec_encoder_interface(void) |
80 | { | 80 | { |
81 | return vpx_codec_vp8_cx(); | 81 | return vpx_codec_vp8_cx(); |
82 | } | 82 | } |