From 9f164b45634d380bb6fb15e2e5719547323ab461 Mon Sep 17 00:00:00 2001 From: irungentoo Date: Fri, 4 Jul 2014 17:41:02 -0400 Subject: Resolution of video can now be changed during call by passing it frames with a different resolution. Added function to change bitrate of video for later use. --- toxav/toxav.c | 1 + 1 file changed, 1 insertion(+) (limited to 'toxav/toxav.c') diff --git a/toxav/toxav.c b/toxav/toxav.c index 82385b95..b97f84ea 100644 --- a/toxav/toxav.c +++ b/toxav/toxav.c @@ -640,6 +640,7 @@ inline__ int toxav_prepare_video_frame(ToxAv *av, int32_t call_index, uint8_t *d CallSpecific *call = &av->calls[call_index]; + reconfigure_video_encoder_resolution(call->cs, input->d_w, input->d_h); int rc = vpx_codec_encode(&call->cs->v_encoder, input, call->cs->frame_counter, 1, 0, MAX_ENCODE_TIME_US); -- cgit v1.2.3