diff options
author | mannol <eniz_vukovic@hotmail.com> | 2015-04-18 19:08:18 +0200 |
---|---|---|
committer | mannol <eniz_vukovic@hotmail.com> | 2015-04-18 19:08:18 +0200 |
commit | eb9f4ad592e1f1988c90ac9af9799e2f1def4002 (patch) | |
tree | 9a107bbe693259a62afa2ae59c1a94c1d4281f81 /toxav/codec.c | |
parent | d1fd3e36a6b58d4cd6b3e2a7ccbed7e1e5d2e2a3 (diff) |
Fix toxav callback
Diffstat (limited to 'toxav/codec.c')
-rw-r--r-- | toxav/codec.c | 3 |
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 | } |