Skip to content

Commit

Permalink
Fix incorrect audio size
Browse files Browse the repository at this point in the history
  • Loading branch information
prsyahmi committed Dec 5, 2020
1 parent 1259261 commit dd0f83a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions v380/FlvStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ void FlvStream::WriteAudio(const std::vector<uint8_t>& packet)

// There is no output format for ADPCM 8000hz, we need to convert it internally
int nPcmData = adpcm_decoder(0, (char *)packetOnly.data(), pcmData.data(), 505, 1);
nPcmData *= sizeof(uint16_t);

uint32_t rdts = *(uint32_t*)(packet.data() + 0);
uint32_t rpts = *(uint32_t*)(packet.data() + 8);
Expand Down

0 comments on commit dd0f83a

Please sign in to comment.