summaryrefslogtreecommitdiff
path: root/toxav/toxav.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-07-04 17:41:02 -0400
committerirungentoo <irungentoo@gmail.com>2014-07-04 17:41:02 -0400
commit9f164b45634d380bb6fb15e2e5719547323ab461 (patch)
tree2569990bf21babf5fbabda1acc4d76054d3faf37 /toxav/toxav.c
parent705fceb2e02e953f9bcb86b4177935326d65f6ae (diff)
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.
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r--toxav/toxav.c1
1 files changed, 1 insertions, 0 deletions
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
640 640
641 641
642 CallSpecific *call = &av->calls[call_index]; 642 CallSpecific *call = &av->calls[call_index];
643 reconfigure_video_encoder_resolution(call->cs, input->d_w, input->d_h);
643 644
644 int rc = vpx_codec_encode(&call->cs->v_encoder, input, call->cs->frame_counter, 1, 0, MAX_ENCODE_TIME_US); 645 int rc = vpx_codec_encode(&call->cs->v_encoder, input, call->cs->frame_counter, 1, 0, MAX_ENCODE_TIME_US);
645 646