From ac6c36994c569f801865f95b62f5a4334f32b8db Mon Sep 17 00:00:00 2001 From: Green Sky Date: Thu, 3 Apr 2025 22:23:37 +0200 Subject: [PATCH] Squashed 'external/toxcore/c-toxcore/' changes from 501a32937f..465fbc8721 465fbc8721 Merge branch 'toxav_deadline' of github.com:Green-Sky/c-toxcore into tomato_testing_in_prod 6f16b5f4e5 chore(toxav): use realtime deadline for vp8 encoder Technically all this does is choose a quality based on frame duration, which we always set to 1, and as such is always realtime. (In same timebase as pts, which we use as a frame counter...) REVERT: 501a32937f Merge branch 'toxav_deadline' of github.com:Green-Sky/c-toxcore into tomato_testing_in_prod REVERT: 865261a67a chore(toxav): use realtime deadline for vp8 encoder Technically all this does is choose a quality based on frame duration, which we always set to 1, and as such is always realtime. (In same timebase as pts, which we use as a frame counter...) git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 465fbc872113531ed5ef28273f7188d39fe44a47 --- toxav/toxav.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toxav/toxav.c b/toxav/toxav.c index 0a62edb..c329f66 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -1084,7 +1084,7 @@ bool toxav_video_send_frame(ToxAV *av, uint32_t friend_number, uint16_t width, u } // TODO(zoff99): don't hardcode this, let the application choose it - const vpx_enc_deadline_t deadline = VPX_DL_REALTIME; + const unsigned long deadline = VPX_DL_REALTIME; const vpx_codec_err_t vrc = vpx_codec_encode(call->video->encoder, &img, call->video->frame_counter, 1, vpx_encode_flags, deadline);