mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
ulaw: fix encoded bytes calculation
Refs #49181 Change-Id: I3e7b0bc4a7c857e680fa6e589e438284b6c4db8a
This commit is contained in:
@ -62,8 +62,9 @@ class Ulaw : public sfl::AudioCodec {
|
||||
const unsigned char *end = data +
|
||||
std::min<size_t>(frameSize_, max_data_bytes);
|
||||
|
||||
for (; data < end; ++data, ++pcm)
|
||||
*data = ULawEncode(*pcm);
|
||||
unsigned char *tmp = data;
|
||||
for (; tmp < end; ++tmp, ++pcm)
|
||||
*tmp = ULawEncode(*pcm);
|
||||
|
||||
return end - data;
|
||||
}
|
||||
|
Reference in New Issue
Block a user