proper stereo handling for multiple frames per packet
This commit is contained in:
parent
ef7095cdc3
commit
0d031d61a3
1 changed files with 1 additions and 1 deletions
|
@ -524,7 +524,7 @@ int opus_decode(OpusDecoder *st, const unsigned char *data,
|
||||||
if (ret<0)
|
if (ret<0)
|
||||||
return ret;
|
return ret;
|
||||||
data += size[i];
|
data += size[i];
|
||||||
pcm += ret;
|
pcm += ret*st->channels;
|
||||||
nb_samples += ret;
|
nb_samples += ret;
|
||||||
}
|
}
|
||||||
return nb_samples;
|
return nb_samples;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue