summaryrefslogtreecommitdiff
path: root/toxav/codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'toxav/codec.c')
-rw-r--r--toxav/codec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/toxav/codec.c b/toxav/codec.c
index 95b4d406..e64c4d52 100644
--- a/toxav/codec.c
+++ b/toxav/codec.c
@@ -371,7 +371,8 @@ void cs_do(CSession *cs)
371 for (; dest; dest = vpx_codec_get_frame(cs->v_decoder, &iter)) { 371 for (; dest; dest = vpx_codec_get_frame(cs->v_decoder, &iter)) {
372 if (cs->vcb.first) 372 if (cs->vcb.first)
373 cs->vcb.first(cs->av, cs->friend_id, dest->d_w, dest->d_h, 373 cs->vcb.first(cs->av, cs->friend_id, dest->d_w, dest->d_h,
374 (const uint8_t**)dest->planes, dest->stride, cs->vcb.second); 374 (const uint8_t*)dest->planes[0], (const uint8_t*)dest->planes[1], (const uint8_t*)dest->planes[2],
375 dest->stride[0], dest->stride[1], dest->stride[2], cs->vcb.second);
375 376
376 vpx_img_free(dest); 377 vpx_img_free(dest);
377 } 378 }