Skip to content

Commit f2a3e80

Browse files
committed
tweak x265 encoder settings
1 parent a4ce8ee commit f2a3e80

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

amalgamation/toxcore_amalgamation.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82707,7 +82707,7 @@ static void vc_init_encoder_h265(Logger *log, VCSession *vc, uint32_t bit_rate,
8270782707
// LOGGER_API_WARNING(vc->av->tox, "H265 encoder init");
8270882708

8270982709
x265_param *param = x265_param_alloc();
82710-
if (x265_param_default_preset(param, "superfast", "zerolatency") != 0) {
82710+
if (x265_param_default_preset(param, "ultrafast", "zerolatency") != 0) {
8271182711
// LOGGER_API_WARNING(vc->av->tox, "H265 encoder:x265_param_default_preset error");
8271282712
printf("vc_init_encoder_h265: H265 encoder:x265_param_default_preset error\n");
8271382713
// goto fail;

toxav/codecs/h264/codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1942,7 +1942,7 @@ static void vc_init_encoder_h265(Logger *log, VCSession *vc, uint32_t bit_rate,
19421942
// LOGGER_API_WARNING(vc->av->tox, "H265 encoder init");
19431943

19441944
x265_param *param = x265_param_alloc();
1945-
if (x265_param_default_preset(param, "superfast", "zerolatency") != 0) {
1945+
if (x265_param_default_preset(param, "ultrafast", "zerolatency") != 0) {
19461946
// LOGGER_API_WARNING(vc->av->tox, "H265 encoder:x265_param_default_preset error");
19471947
printf("vc_init_encoder_h265: H265 encoder:x265_param_default_preset error\n");
19481948
// goto fail;

0 commit comments

Comments
 (0)