summaryrefslogtreecommitdiff
path: root/toxav/toxav.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/toxav.c')
-rw-r--r--toxav/toxav.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/toxav/toxav.c b/toxav/toxav.c
index 7ce6b9bc..35523319 100644
--- a/toxav/toxav.c
+++ b/toxav/toxav.c
@@ -807,7 +807,7 @@ END:
807 return rc == TOXAV_ERR_SEND_FRAME_OK; 807 return rc == TOXAV_ERR_SEND_FRAME_OK;
808} 808}
809 809
810bool toxav_video_send_frame(ToxAV* av, uint32_t friend_number, uint16_t width, uint16_t height, const uint8_t* y, const uint8_t* u, const uint8_t* v, const uint8_t* a,TOXAV_ERR_SEND_FRAME* error) 810bool toxav_video_send_frame(ToxAV* av, uint32_t friend_number, uint16_t width, uint16_t height, const uint8_t* y, const uint8_t* u, const uint8_t* v, TOXAV_ERR_SEND_FRAME* error)
811{ 811{
812 TOXAV_ERR_SEND_FRAME rc = TOXAV_ERR_SEND_FRAME_OK; 812 TOXAV_ERR_SEND_FRAME rc = TOXAV_ERR_SEND_FRAME_OK;
813 ToxAVCall* call; 813 ToxAVCall* call;
@@ -852,10 +852,6 @@ bool toxav_video_send_frame(ToxAV* av, uint32_t friend_number, uint16_t width, u
852 memcpy(img.planes[VPX_PLANE_U], u, (width/2) * (height/2)); 852 memcpy(img.planes[VPX_PLANE_U], u, (width/2) * (height/2));
853 memcpy(img.planes[VPX_PLANE_V], v, (width/2) * (height/2)); 853 memcpy(img.planes[VPX_PLANE_V], v, (width/2) * (height/2));
854 854
855 /* TODO LOL */
856 if (a && img.planes[VPX_PLANE_ALPHA])
857 memcpy(img.planes[VPX_PLANE_ALPHA], a, width * height);
858
859 int vrc = vpx_codec_encode(call->video.second->encoder, &img, 855 int vrc = vpx_codec_encode(call->video.second->encoder, &img,
860 call->video.second->frame_counter, 1, 0, MAX_ENCODE_TIME_US); 856 call->video.second->frame_counter, 1, 0, MAX_ENCODE_TIME_US);
861 857