Unified · Split
| @@ -610,6 +610,9 @@ int main(int argc, char **argv) { · 609 unmodified lines | |||
| 610 | cfg.rc_buf_optimal_sz = 600; | 610 | cfg.rc_buf_optimal_sz = 600; |
| 611 | cfg.rc_buf_sz = 1000; | 611 | cfg.rc_buf_sz = 1000; |
| 612 | 612 | ||
| 613 | // Use 1 thread as default. | ||
| 614 | cfg.g_threads = 1; | ||
| 615 | |||
| 613 | // Enable error resilient mode. | 616 | // Enable error resilient mode. |
| 614 | cfg.g_error_resilient = 1; | 617 | cfg.g_error_resilient = 1; |
| 615 | cfg.g_lag_in_frames = 0; | 618 | cfg.g_lag_in_frames = 0; |
| @@ -675,6 +678,7 @@ int main(int argc, char **argv) { · 59 unmodified lines | |||
| 675 | vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); | 678 | vpx_codec_control(&codec, VP9E_SET_FRAME_PERIODIC_BOOST, 0); |
| 676 | vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0); | 679 | vpx_codec_control(&codec, VP9E_SET_NOISE_SENSITIVITY, 0); |
| 677 | vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0); | 680 | vpx_codec_control(&codec, VP8E_SET_STATIC_THRESHOLD, 0); |
| 681 | vpx_codec_control(&codec, VP9E_SET_TILE_COLUMNS, (cfg.g_threads >> 1)); | ||
| 678 | if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) { | 682 | if (vpx_codec_control(&codec, VP9E_SET_SVC, layering_mode > 0 ? 1: 0)) { |
| 679 | die_codec(&codec, "Failed to set SVC"); | 683 | die_codec(&codec, "Failed to set SVC"); |
| 680 | } | 684 | } |