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.
This commit is contained in:
iphydf 2018-09-26 00:36:59 +00:00
parent 17a7bf3fd2
commit 3e58f3cd4d
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9
2 changed files with 2 additions and 3 deletions

View File

@ -30,7 +30,6 @@
#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define MSI_MAXMSG_SIZE 256

View File

@ -72,11 +72,11 @@
#define VIDEO_BITRATE_INITIAL_VALUE 5000
#define VIDEO_DECODE_BUFFER_SIZE 5 // this buffer has normally max. 1 entry
static const vpx_codec_iface_t *video_codec_decoder_interface(void)
static vpx_codec_iface_t *video_codec_decoder_interface(void)
{
return vpx_codec_vp8_dx();
}
static const vpx_codec_iface_t *video_codec_encoder_interface(void)
static vpx_codec_iface_t *video_codec_encoder_interface(void)
{
return vpx_codec_vp8_cx();
}