a2dp: fix sign of out_decoded

This commit is contained in:
Wim Taymans 2020-11-02 09:16:59 +01:00
parent c1530ba171
commit 395a30b5d6
2 changed files with 2 additions and 2 deletions

View file

@ -374,7 +374,7 @@ static int codec_encode(void *data,
int res; int res;
res = sbc_encode(&this->sbc, src, src_size, res = sbc_encode(&this->sbc, src, src_size,
dst, dst_size, dst_out); dst, dst_size, (ssize_t*)dst_out);
if (res >= this->codesize) if (res >= this->codesize)
this->payload->frame_count += res / this->codesize; this->payload->frame_count += res / this->codesize;

View file

@ -357,7 +357,7 @@ static int send_buffer(struct impl *this)
static int encode_buffer(struct impl *this, const void *data, int size) static int encode_buffer(struct impl *this, const void *data, int size)
{ {
int processed; int processed;
ssize_t out_encoded; size_t out_encoded;
struct port *port = &this->port; struct port *port = &this->port;
const void *from_data = data; const void *from_data = data;
int from_size = size; int from_size = size;