From 77df39863e8e2103bda195ec76b2a255baf1acb4 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 1 Aug 2014 13:22:32 -0400 Subject: [PATCH] Disable decode deadline, fixed build error. --- toxav/toxav.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 75e93bac..3a95e445 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -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;