mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Disable decode deadline, fixed build error.
This commit is contained in:
parent
055640611f
commit
77df39863e
|
@ -39,7 +39,7 @@
|
|||
|
||||
/* Assume 24 fps*/
|
||||
#define MAX_ENCODE_TIME_US ((1000 / 24) * 1000)
|
||||
#define MAX_DECODE_TIME_US MAX_ENCODE_TIME_US
|
||||
#define MAX_DECODE_TIME_US 0
|
||||
|
||||
#define MAX_VIDEOFRAME_SIZE 0x40000 /* 256KiB */
|
||||
#define VIDEOFRAME_PIECE_SIZE 0x500 /* 1.25 KiB*/
|
||||
|
@ -925,7 +925,7 @@ static void decode_video(ToxAv *av, DECODE_PACKET *p)
|
|||
int rc = vpx_codec_decode(&call->cs->v_decoder, p->data, p->size, NULL, MAX_DECODE_TIME_US);
|
||||
|
||||
if (rc != VPX_CODEC_OK) {
|
||||
LOGGER_ERROR("Error decoding video: %u %s\n", i, vpx_codec_err_to_string(rc));
|
||||
LOGGER_ERROR("Error decoding video: %s\n", vpx_codec_err_to_string(rc));
|
||||
}
|
||||
|
||||
vpx_codec_iter_t iter = NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user