diff options
author | irungentoo <irungentoo@gmail.com> | 2014-08-01 13:22:32 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-08-01 13:22:32 -0400 |
commit | 77df39863e8e2103bda195ec76b2a255baf1acb4 (patch) | |
tree | e46cdb22164f86a929b615537fd425f44d02e160 | |
parent | 055640611fca4b6e35e8d81d5e6cf809c2cbb078 (diff) |
Disable decode deadline, fixed build error.
-rw-r--r-- | toxav/toxav.c | 4 |
1 files 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 @@ | |||
39 | 39 | ||
40 | /* Assume 24 fps*/ | 40 | /* Assume 24 fps*/ |
41 | #define MAX_ENCODE_TIME_US ((1000 / 24) * 1000) | 41 | #define MAX_ENCODE_TIME_US ((1000 / 24) * 1000) |
42 | #define MAX_DECODE_TIME_US MAX_ENCODE_TIME_US | 42 | #define MAX_DECODE_TIME_US 0 |
43 | 43 | ||
44 | #define MAX_VIDEOFRAME_SIZE 0x40000 /* 256KiB */ | 44 | #define MAX_VIDEOFRAME_SIZE 0x40000 /* 256KiB */ |
45 | #define VIDEOFRAME_PIECE_SIZE 0x500 /* 1.25 KiB*/ | 45 | #define VIDEOFRAME_PIECE_SIZE 0x500 /* 1.25 KiB*/ |
@@ -925,7 +925,7 @@ static void decode_video(ToxAv *av, DECODE_PACKET *p) | |||
925 | int rc = vpx_codec_decode(&call->cs->v_decoder, p->data, p->size, NULL, MAX_DECODE_TIME_US); | 925 | int rc = vpx_codec_decode(&call->cs->v_decoder, p->data, p->size, NULL, MAX_DECODE_TIME_US); |
926 | 926 | ||
927 | if (rc != VPX_CODEC_OK) { | 927 | if (rc != VPX_CODEC_OK) { |
928 | LOGGER_ERROR("Error decoding video: %u %s\n", i, vpx_codec_err_to_string(rc)); | 928 | LOGGER_ERROR("Error decoding video: %s\n", vpx_codec_err_to_string(rc)); |
929 | } | 929 | } |
930 | 930 | ||
931 | vpx_codec_iter_t iter = NULL; | 931 | vpx_codec_iter_t iter = NULL; |