Skip to content

Commit b799b1d

Browse files
committed
XX DEBUG
1 parent be54d2e commit b799b1d

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
@@ -82926,9 +82926,9 @@ int vc_reconfigure_encoder_h265(Logger *log, VCSession *vc, uint32_t bit_rate,
8292682926
x265_param *param = x265_param_alloc();
8292782927
x265_encoder_parameters(vc->h265_encoder, param);
8292882928

82929-
param->rc.bitrate = (int)(bit_rate / 1000);
8293082929
param->rc.vbvBufferSize = (((int)(bit_rate / 1000)) * VIDEO_BUF_FACTOR_H264);
8293182930
param->rc.vbvMaxBitrate = ((int)(bit_rate / 1000));
82931+
param->rc.bitrate = (int)(bit_rate / 1000);
8293282932

8293382933
int res = x265_encoder_reconfig(vc->h265_encoder, param);
8293482934
x265_param_free(param);

toxav/codecs/h264/codec.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2161,9 +2161,9 @@ int vc_reconfigure_encoder_h265(Logger *log, VCSession *vc, uint32_t bit_rate,
21612161
x265_param *param = x265_param_alloc();
21622162
x265_encoder_parameters(vc->h265_encoder, param);
21632163

2164-
param->rc.bitrate = (int)(bit_rate / 1000);
21652164
param->rc.vbvBufferSize = (((int)(bit_rate / 1000)) * VIDEO_BUF_FACTOR_H264);
21662165
param->rc.vbvMaxBitrate = ((int)(bit_rate / 1000));
2166+
param->rc.bitrate = (int)(bit_rate / 1000);
21672167

21682168
int res = x265_encoder_reconfig(vc->h265_encoder, param);
21692169
x265_param_free(param);

0 commit comments

Comments
 (0)