| 
15 | 15 | #include "../toxcore/logger.h"  | 
16 | 16 | #include "../toxcore/mono_time.h"  | 
17 | 17 | 
 
  | 
18 |  | -/**  | 
19 |  | - * Soft deadline the decoder should attempt to meet, in "us" (microseconds).  | 
20 |  | - * Set to zero for unlimited.  | 
21 |  | - *  | 
22 |  | - * By convention, the value 1 is used to mean "return as fast as possible."  | 
23 |  | - */  | 
24 |  | -// TODO(zoff99): don't hardcode this, let the application choose it  | 
25 |  | -#define WANTED_MAX_DECODER_FPS 40  | 
26 |  | - | 
27 |  | -/**  | 
28 |  | - * VPX_DL_REALTIME       (1)  | 
29 |  | - * deadline parameter analogous to VPx REALTIME mode.  | 
30 |  | - *  | 
31 |  | - * VPX_DL_GOOD_QUALITY   (1000000)  | 
32 |  | - * deadline parameter analogous to VPx GOOD QUALITY mode.  | 
33 |  | - *  | 
34 |  | - * VPX_DL_BEST_QUALITY   (0)  | 
35 |  | - * deadline parameter analogous to VPx BEST QUALITY mode.  | 
36 |  | - */  | 
37 |  | -#define MAX_DECODE_TIME_US (1000000 / WANTED_MAX_DECODER_FPS) // to allow x fps  | 
38 |  | - | 
39 | 18 | /**  | 
40 | 19 |  * Codec control function to set encoder internal speed settings. Changes in  | 
41 | 20 |  * this value influences, among others, the encoder's selection of motion  | 
@@ -320,7 +299,7 @@ void vc_iterate(VCSession *vc)  | 
320 | 299 | 
 
  | 
321 | 300 |     LOGGER_DEBUG(vc->log, "vc_iterate: rb_read p->len=%d p->header.xe=%d", (int)full_data_len, p->header.xe);  | 
322 | 301 |     LOGGER_DEBUG(vc->log, "vc_iterate: rb_read rb size=%d", (int)log_rb_size);  | 
323 |  | -    const vpx_codec_err_t rc = vpx_codec_decode(vc->decoder, p->data, full_data_len, nullptr, MAX_DECODE_TIME_US);  | 
 | 302 | +    const vpx_codec_err_t rc = vpx_codec_decode(vc->decoder, p->data, full_data_len, nullptr, 0);  | 
324 | 303 |     free(p);  | 
325 | 304 | 
 
  | 
326 | 305 |     if (rc != VPX_CODEC_OK) {  | 
 | 
0 commit comments