mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Toxav fix.
Use stored image width instead of displayed image width.
This commit is contained in:
parent
84d4f95038
commit
048d793021
|
@ -460,7 +460,7 @@ int toxav_prepare_video_frame ( ToxAv *av, int32_t call_index, uint8_t *dest, in
|
|||
return av_ErrorInvalidState;
|
||||
}
|
||||
|
||||
if (cs_set_video_encoder_resolution(call->cs, input->d_w, input->d_h) < 0) {
|
||||
if (cs_set_video_encoder_resolution(call->cs, input->w, input->h) < 0) {
|
||||
pthread_mutex_unlock(call->mutex);
|
||||
return av_ErrorSettingVideoResolution;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user