Toxav fix.

Use stored image width instead of displayed image width.
This commit is contained in:
irungentoo 2015-05-05 16:12:09 -04:00
parent 84d4f95038
commit 048d793021
No known key found for this signature in database
GPG Key ID: 10349DC9BED89E98

View File

@ -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;
}