mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
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:
parent
17a7bf3fd2
commit
3e58f3cd4d
|
@ -30,7 +30,6 @@
|
|||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#define MSI_MAXMSG_SIZE 256
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user